"Home page text animations"
Bootstrap 4.1.1 Snippet by ALIMUL AL RAZY

1
2
3
4
5
6
7
8
9
10
<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="alrazy-title" data-splitting>This is Intro text</div>
<script src="https://unpkg.com/splitting@1.0.0/dist/splitting.js"></script>
<script>
Splitting();
</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
34
35
36
37
@import url("https://fonts.googleapis.com/css?family=Open+Sans:700");
html, body {
background: #DD2911;
color: #FFF;
}
html {
height: 100%;
display: flex;
}
body {
margin: auto;
}
.alrazy-title {
font-family: 'Open Sans', Helvetica, sans-serif;
font-weight: 700;
font-size: 6vw;
font-size: calc( 100vw / var(--char-total) );
position: relative;
padding: 0.4em 0;
overflow: hidden;
}
.alrazy-title:after {
content: '';
display: block;
position: absolute;
bottom: 0;
left: 0;
right: 0;
border-bottom: solid 0.2em;
-webkit-animation: underline 1s cubic-bezier(0.8, 0, 0, 1);
animation: underline 1s cubic-bezier(0.8, 0, 0, 1);
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: