<div class="container">
<div class="box">
<div class="title">
<span class="block"></span>
<h1>Lindsey Fisher</h1>
</div>
<div class="role">
<div class="block"></div>
<p>Web Content Creator, Software Developer Student, aspiring Game Developer</p>
</div>
</div>
</div>
*{
margin: 0;
padding: 0;
}
body,
html{
overflow: hidden;
}
.container{
width: 100%;
height: 100vh;
background: #232323;
display: flex;
justify-content: center;
align-items: center;
}
.container .box{
width: 500px;
height: 250px;
position: relative;
display: flex;
justify-content: center;
flex-direction: column;
}
.container .box .title{
width:100%;
position: relative;
display: flex;
align-items: center;
height: 100px;
}
.container .box .title .block{
width: 0%;
height: inherit;
background: #ffb510;
position: absolute;
animation: mainBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
display: flex;
}
.container .box .title h1{
font-family: 'Poppins';
color: #fff;
font-size: 3rem;
animation: mainFadeIn 2s forwards;
animation-delay: 1.6s;
opacity: 0;
display: flex;
align-items: baseline;
postion: relative;
}
.container .box .role{
width: 100%;
position: relative;
display: flex;
align-items:center;
height: 30px;
margin-top: -10px;
}
.container .box .role .block{
width: 0%;
height: inherit;
background: #e91e63;
position: absolute;
animation: mainBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
animation-delay: 2s;
display: flex;
}
.container .box .role p{
animation: secFadeIn 2s forwards;
animation-delay: 3.2s;
opacity: 0;
font-weight: 400;
color: #fff;
font-size: 12px;
line-height: 1.5;
text-transform: uppercase;
letter-spacing: 5px;
}
@keyframes mainBlock{
0%{
width: 0%;
left: 0;
}
50%{
width: 100%;
left: 0;
}
100%{
width: 0;
left: 100%;
}
}
@keyframes mainFadeIn{
0%{
opacity:0;
}
100%{
opacity: 1;
}
}
@keyframes secFadeIn{
0%{
opacity: 0;
}
100%{
opacity: 0.5;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.