"Text Reveal Animation"
Bootstrap 4.1.1 Snippet by ALIMUL AL RAZY

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="text">
<h1><span class="hidden-text">WELCOME TO MY COOL</span></h1>
<h1><span class="hidden-text">TUTORIAL FOR</span></h1>
<h1><span class="hidden-text">GSAP TEXT ANIMATION</span></h1>
</div>
<div style="height: 100vh"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.6.0/gsap.min.js"></script>
<script>
let tl = new TimelineMax({});
tl.staggerFrom(
".hidden-text",
1.5,
{ y: "100%", ease: "power4.easeOut" },
0.15
);
</script>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
* {
margin: 0;
padding: 0;
}
body {
width: 100%;
height: 100%;
font-weight: bold;
}
.container {
background: #eff3f6;
height: 100vh;
}
h1 {
font-size: 4rem;
position: relative;
overflow: hidden;
height: 4rem;
margin: 0;
}
.text {
padding: 100px;
}
.hidden-text {
position: absolute;
z-index: 200;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: