Skip to main content

Text Reflection Effect Using CSS3






Source Code:

HTML:


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Awesome CSS Text Reflection</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1>Logo</h1>
</body>
</html>

CSS:


*{
    margin: 0;
    padding: 0;
    font-family: Century Gothic;
}
body{
    background: #000;
}
h1{
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-transform: uppercase;
    font-size: 100px;
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #ffffff);
}

Comments

Popular posts from this blog

Popup Modal Using Html, CSS and JavaScript

Video: Source Code: //HTML <! DOCTYPE   html > < html   lang = "en" > < head >     < meta   charset = "UTF-8" >     < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >     < meta   http-equiv = "X-UA-Compatible"   content = "ie=edge" >     < link   rel = "stylesheet"   href = "style.css" >     < title >Javascript Popup Modal</ title > </ head > < body >     < button   onclick = " pop () "   class = "btn" >Click Me!</ button >     < div   id = "box"   class = "box" >         < span   onclick = " hide () " > &times; </ span >         < h2 >Javascript...

Pure CSS Hamburger Menu | Side Bar Menu

Video:  Source Code: HTML <! DOCTYPE   html > < html   lang = "en" > < head >      < meta   charset = "UTF-8" >      < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      < meta   http-equiv = "X-UA-Compatible"   content = "ie=edge" >      < link   rel = "stylesheet"   href = "style.css" >      < title > Hamburger Menu </ title > </ head > < body >      < input   type = "checkbox"   name = ""   id = "check" >      < label   class = "ham_menu"   for = "check" > &#9776; </ label >      < div   class = "main" >          < label   for = "check" > &times; </ label ...