-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
117 lines (112 loc) · 6.37 KB
/
index.html
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
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html>
<head>
<title>Testing App - Interactions</title>
<link rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
</head>
<body>
<div id="container" >
<div id="theBlueBox"></div>
<div id="theRedBox"></div>
<div id="theGreenBox"></div>
</div>
<script type="text/javascript" src="knockout-3.0.0.js"></script>
<!--Another Scripts -->
<script type="text/javascript" src="gsap/CSSPlugin.min.js"></script>
<script type="text/javascript" src="gsap/EasePack.min.js"></script>
<script type="text/javascript" src="gsap/TweenLite.min.js"></script>
<!-- interactions -->
<script type="text/javascript" src="interactions/Utils.js"></script>
<script type="text/javascript" src="interactions/ActionParams.js"></script>
<script type="text/javascript" src="interactions/ActionHandler.js"></script>
<script type="text/javascript" src="interactions/ActionHandlersFactory.js"></script>
<script type="text/javascript" src="interactions/ActionsGroup.js"></script>
<script type="text/javascript" src="interactions/GotoURLActionParams.js"></script>
<script type="text/javascript" src="interactions/GotoURLActionHandler.js"></script>
<script type="text/javascript" src="interactions/TriggerCTActionHandler.js"></script>
<script type="text/javascript" src="interactions/CustInterActionParams.js"></script>
<script type="text/javascript" src="interactions/CustInterActionHandler.js"></script>
<script type="text/javascript" src="interactions/URLActionsGroup.js"></script>
<script type="text/javascript" src="interactions/VideoPlayActionHandler.js"></script>
<script type="text/javascript" src="interactions/VideoStopActionHandler.js"></script>
<script type="text/javascript" src="interactions/VideoPauseActionHandler.js"></script>
<script type="text/javascript" src="interactions/VideoReplayActionHandler.js"></script>
<script type="text/javascript" src="interactions/VideoMuteActionHandler.js"></script>
<script type="text/javascript" src="interactions/VideoUnmuteActionHandler.js"></script>
<script type="text/javascript" src="interactions/VideoActionsGroup.js"></script>
<script type="text/javascript" src="interactions/ExpandActionHandler.js"></script>
<script type="text/javascript" src="interactions/CollapseActionHandler.js"></script>
<script type="text/javascript" src="interactions/ExpandableActionsGroup.js"></script>
<script type="text/javascript" src="interactions/FadeActionParams.js"></script>
<script type="text/javascript" src="interactions/ShowHideActionParams.js"></script>
<script type="text/javascript" src="interactions/MotionActionParams.js"></script>
<script type="text/javascript" src="interactions/RotateActionParams.js"></script>
<script type="text/javascript" src="interactions/ScaleActionParams.js"></script>
<script type="text/javascript" src="interactions/AnimActionHandler.js"></script>
<script type="text/javascript" src="interactions/FadeInActionHandler.js"></script>
<script type="text/javascript" src="interactions/FadeOutActionHandler.js"></script>
<script type="text/javascript" src="interactions/ShowActionHandler.js"></script>
<script type="text/javascript" src="interactions/HideActionHandler.js"></script>
<script type="text/javascript" src="interactions/MotionActionHandler.js"></script>
<script type="text/javascript" src="interactions/SlideInActionHandler.js"></script>
<script type="text/javascript" src="interactions/SlideOutActionHandler.js"></script>
<script type="text/javascript" src="interactions/ScaleActionHandler.js"></script>
<script type="text/javascript" src="interactions/RotateActionHandler.js"></script>
<script type="text/javascript" src="interactions/AnimationActionsGroup.js"></script>
<script type="text/javascript" src="interactions/Action.js"></script>
<script type="text/javascript" src="interactions/Interaction.js"></script>
<script type="text/javascript" src="interactions/BindableAction.js"></script>
<script type="text/javascript" src="interactions/BindableInteraction.js"></script>
<script>
var interaction = BindableInteraction.createFromJSON({
eventId: 'click',
actions: [
{
actionId:'animation.rotate',
actionParams: {
degree: 180,
direction: 1,
duration: 2000,
delay:0,
ease: 'none',
easePower: 1,
loop:1
},
actionTarget: 'theBlueBox'
},
{
actionId:'animation.rotate',
actionParams: {
degree: 180,
direction: -1,
duration: 2000,
delay:2000,
ease: 'none',
easePower: 1,
loop:0
},
actionTarget: 'theRedBox'
},
{
actionId:'animation.rotate',
actionParams: {
degree: 180,
direction: 1,
duration: 2000,
delay:4000,
ease: 'none',
easePower: 1,
loop:2
},
actionTarget: 'theGreenBox'
}
]
});
interaction.init();
interaction.attach('theBlueBox');
interaction.prepare();
// interaction.play();
</script>
</body>
</html>