This repository was archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (46 loc) · 1.31 KB
/
index.html
File metadata and controls
49 lines (46 loc) · 1.31 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>textify</title>
<meta name="author" content="Sim Boon Long">
<meta name="description" content="Add fancy animation/effects to letters.">
<link rel="stylesheet" type="text/css" href="css/textify.css">
</head>
<body>
<div id="split-1" class="split">something cool is coming</div>
<div id="split-2" class="split">yup this is awesome</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/TweenMax.min.js"></script>
<script src="js/textify.js"></script>
<script>
// Initialize
var splitOne = new SplitText( $('#split-1') );
splitOne.init().animate({
delay: 0,
x: 10,
y: 20,
rotationX: 165,
rotationY: 40,
rotationZ: 20,
duration: 1.3,
opacity: 0,
staggerDuration: 0.1,
easeType : Back.easeOut
});
var splitTwo = new SplitText( $('#split-2') );
splitTwo.init().animate({
delay: 0.7,
x: 40,
y: 20,
rotationX: 20,
rotationY: 40,
rotationZ: 75,
duration: 1.7,
opacity: 0,
staggerDuration: 0.1,
easeType : Expo.easeOut
});
</script>
</body>
</html>