<div class="middle">
<div class="cutoff">
<p class="text">Explanation of</p>
<div class="hr"></div>
<p class="desc"><span class="descText">Computer Science Website</span></p>
</div>
</div>
*{margin:0;padding:0;font-family:"Source Sans Pro";}
.middle {
width: 249px;
height: 97px;
margin: auto;
position: absolute;
top: 0; bottom: 0; left: 0; right: 0;
overflow: hidden;
}
.text {
font-weight: 300;
font-size: 32px;
color: #333;
text-align: center;
opacity: 0;
top: 50px;
position: relative;
}
.hr {
margin-top: 12px;
height: 1px;
width: 262px;
margin-left: -262px;
background-color: #bbb;
}
.desc {
font-weight: 301;
font-size: 20px;
color: #333;
text-align: center;
overflow: hidden;
}
.desc span {
margin-top: -24px;
display: block;
}
$( document ).ready(function() {
var a = $(".text");
var b = $(".hr");
var c = $(".descText");
a.delay(1000).animate({top: "0", opacity: "1"}, 1000, function() {
b.delay(500).animate({marginLeft: "0"}, 800, function() {
c.animate({marginTop: "15"}, 800)
});
});
});
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.