"Best Text Animation using Svg tag "
Bootstrap 4.0.0 Snippet by webcoderskull

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/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 ---------->
<svg viewBox="0 0 1800 600">
<symbol id="s-text">
<text text-anchor="middle"
x="50%"
y="35%"
class="webcoderskull"
>
Web
</text>
<text text-anchor="middle"
x="50%"
y="68%"
class="text--line"
>
Coder skull
</text>
</symbol>
<g class="g-ants">
<use xlink:href="#s-text"
class="webcoderskull-1"></use>
<use xlink:href="#s-text"
class="webcoderskull-1"></use>
<use xlink:href="#s-text"
class="webcoderskull-1"></use>
<use xlink:href="#s-text"
class="webcoderskull-1"></use>
<use xlink:href="#s-text"
class="webcoderskull-1"></use>
</g>
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
HTML,
BODY {
height: 100%;
}
.webcoderskull {
font-size: 0.5em;
}
svg {
position: absolute;
width: 100%;
height: 100%;
background: #000;
background-size: 0.12em 100%;
font: 16em/1 Arial;
}
.webcoderskull-1 {
fill: none;
stroke: white;
stroke-dasharray: 7% 28%;
stroke-width: 3px;
-webkit-animation: stroke-offset 7s infinite linear;
animation: stroke-offset 7s infinite linear;
}
.webcoderskull-1:nth-child(1) {
stroke: #360745;
stroke-dashoffset: 7%;
}
.webcoderskull-1:nth-child(2) {
stroke: #d61c59;
stroke-dashoffset: 14%;
}
.webcoderskull-1:nth-child(3) {
stroke: #e7d84b;
stroke-dashoffset: 21%;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

How to add Link or Button here in order to redirect me in another page, m trying but failed everytime

naman1897 () - 6 years ago - Reply 0


You can apply link before svg tag and its working

akshayptdr4 (1) - 6 years ago - Reply 0