<body>
<section id="main">
<!--Navigation-->
<nav>
<div class="logo">
<a href="#">WBOLT</a>
</div>
</nav>
<div class="content">
<h1>Diffuse Reflection</h1>
</div>
</section>
</body>
body {
margin: 0px;
padding: 0px;
font-family: "Poppins", sans-serif;
}
* {
box-sizing: border-box;
scroll-behavior: smooth;
}
ul {
list-style: none;
}
a {
text-decoration: none;
}
nav {
position: fixed;
width: 100%;
display: inline-flex;
justify-content: space-around;
align-items: center;
height: 60px;
padding: 0px 5%;
background: rgba(0, 194, 203, 0.1);
z-index: 1;
}
.logo a {
font-weight: 700;
font-size: 2rem;
letter-spacing: -1px;
color: #00c2cb;
}
nav ul {
display: flex;
}
#main {
width: 100%;
min-height: 100vh;
position: relative;
background: #22232e;
}
.content {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.content h1 {
position: relative;
font-size: 3rem;
font-weight: 600;
color: #00c2cb;
text-shadow: 0px 0px 10px #00c2cb50, 0px 0px 20px #00c2cb50;
margin: 3px;
transition: ease 0.3s;
}
.content h1::before {
content: "";
position: absolute;
top: 80%;
left: 0;
height: 100%;
width: 100%;
background: #00c2cb;
transform: perspective(10px) rotateX(10deg) scale(1, 0.2);
filter: blur(1em);
opacity: 0.5;
}
.content h1:hover{
color: #fff;
text-shadow: 0px 0px 10px #00c2cb, 0px 0px 20px #00c2cb;
}
.content h1:hover::before{
opacity: 1;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.