-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·107 lines (90 loc) · 2.9 KB
/
index.html
File metadata and controls
executable file
·107 lines (90 loc) · 2.9 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>SUPERSCROLLORAMA - Simple Demo #1</title>
<link href='http://fonts.googleapis.com/css?family=Luckiest+Guy' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.css" type="text/css">
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body class="simple-demo">
<div id="content-wrapper">
<div id="examples-1">
<h2 id="type-it"> <span>Type cool text</span></h2>
<h2 id="fade-it">Fade It</h2>
<div id=fly-it-pin style=width:100%>
<h2 id="fly-it">Fly It</h2>
</div>
<h2 id="spin-it">Spin It</h2>
<h2 id="scale-it">Scale It</h2>
<h2 id="smush-it">Smush It</h2>
</div>
</div>
<script type="text/javascript" src="js/greensock/TweenMax.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js"><\/script>')</script>
<script src="js/jquery.skrollex.js"></script>
<script src="js/jquery.typing-tween.js"></script>
<script>
$(document).ready(function () {
var duration = 400;
window.tt = $('#type-it > span').typingTween({
duration: 2,
add : 'char',
remove : 'word'
});
$('#type-it').skrollex({
animation: {
tween : tt,
duration: duration
},
pin : {
offset : 200,
duration: duration
}
});
$('#fade-it').skrollex({
animation: {
tween : TweenMax.from($('#fade-it'), .5, {css: {opacity: 0}}),
duration: duration
}
});
$('#fly-it-pin').skrollex({
animation: {
tween : TweenMax.fromTo($('#fly-it'), .25, {css: {right: '400px'}, ease: Quad.easeInOut}, {css: {right: '-400px'}, ease: Quad.easeInOut}),
duration: duration,
offset : -200
},
pin : {
offset : 400,
duration: 600
// ,height : 400
}
});
$('#spin-it').skrollex({
animation: {
tween : TweenMax.from($('#spin-it'), .5, {css: {opacity: 0, rotation: 720}, ease: Quad.easeOut}),
duration: duration
}
});
$('#scale-it').skrollex({
animation: {
tween : TweenMax.fromTo($('#scale-it'), .25,
{css: {opacity: 0, fontSize: '20px'}, immediateRender: true, ease: Quad.easeInOut},
{css: {opacity: 1, fontSize: '240px'}, ease: Quad.easeInOut}),
duration: duration
}
});
$('#smush-it').skrollex({
animation: {
tween : TweenMax.fromTo($('#smush-it'), .25,
{css: {opacity: 0, 'letter-spacing': '30px'}, immediateRender: true, ease: Quad.easeInOut},
{css: {opacity: 1, 'letter-spacing': '-10px'}, ease: Quad.easeInOut}),
duration: duration
}
});
});
</script>
</body>
</html>