transitions.js
6.75 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
$(document).ready(function () {
$('#change-transitions').change(function () {
var ani = $('#change-transitions').val();
$("body").removeClass().addClass("animated " + ani);
switch (ani) {
case "bounceOut" :
setTimeout(function () {
$('#change-transitions').val("bounceIn");
reload_page('bounceIn');
}, 1000);
break;
case "bounceOutDown" :
setTimeout(function () {
$('#change-transitions').val("bounceInDown");
reload_page('bounceInDown');
}, 1000);
break;
case "bounceOutLeft" :
setTimeout(function () {
$('#change-transitions').val("bounceInLeft");
reload_page('bounceInLeft');
}, 1000);
break;
case "bounceOutRight" :
setTimeout(function () {
$('#change-transitions').val("bounceInRight");
reload_page('bounceInRight');
}, 1000);
break;
case "bounceOutUp" :
setTimeout(function () {
$('#change-transitions').val("bounceInUp");
reload_page('bounceInUp');
}, 1000);
break;
case "fadeOut" :
setTimeout(function () {
$('#change-transitions').val("fadeIn");
reload_page('fadeIn');
}, 1000);
break;
case "fadeOutDown" :
setTimeout(function () {
$('#change-transitions').val("fadeInDown");
reload_page('fadeInDown');
}, 1000);
break;
case "fadeOutDownBig" :
setTimeout(function () {
$('#change-transitions').val("fadeInDownBig");
reload_page('fadeInDownBig');
}, 1000);
break;
case "fadeOutLeft" :
setTimeout(function () {
$('#change-transitions').val("fadeInLeft");
reload_page('fadeInLeft');
}, 1000);
break;
case "fadeOutLeftBig" :
setTimeout(function () {
$('#change-transitions').val("fadeInLeftBig");
reload_page('fadeInLeftBig');
}, 1000);
break;
case "fadeOutRight" :
setTimeout(function () {
$('#change-transitions').val("fadeInRight");
reload_page('fadeInRight');
}, 1000);
break;
case "fadeOutRightBig" :
setTimeout(function () {
$('#change-transitions').val("fadeInRightBig");
reload_page('fadeInRightBig');
}, 1000);
break;
case "fadeOutUp" :
setTimeout(function () {
$('#change-transitions').val("fadeInUp");
reload_page('fadeInUp');
}, 1000);
break;
case "fadeOutUpBig" :
setTimeout(function () {
$('#change-transitions').val("fadeInUpBig");
reload_page('fadeInUpBig');
}, 1000);
break;
case "flipOutX" :
setTimeout(function () {
$('#change-transitions').val("flipInX");
reload_page('flipInX');
}, 1000);
break;
case "flipOutY" :
setTimeout(function () {
$('#change-transitions').val("flipInY");
reload_page('flipInY');
}, 1000);
break;
case "lightSpeedOut" :
setTimeout(function () {
$('#change-transitions').val("lightSpeedIn");
reload_page('lightSpeedIn');
}, 1000);
break;
case "rotateOut" :
setTimeout(function () {
$('#change-transitions').val("rotateIn");
reload_page('rotateIn');
}, 1000);
break;
case "rotateOutDownLeft" :
setTimeout(function () {
$('#change-transitions').val("rotateInDownLeft");
reload_page('rotateInDownLeft');
}, 1000);
break;
case "rotateOutDownRight" :
setTimeout(function () {
$('#change-transitions').val("rotateInDownRight");
reload_page('rotateInDownRight');
}, 1000);
break;
case "rotateOutUpLeft" :
setTimeout(function () {
$('#change-transitions').val("rotateInUpLeft");
reload_page('rotateInUpLeft');
}, 1000);
break;
case "rotateOutUpRight" :
setTimeout(function () {
$('#change-transitions').val("rotateInUpRight");
reload_page('rotateInUpRight');
}, 1000);
break;
case "slideOutUp" :
setTimeout(function () {
$('#change-transitions').val("slideInDown");
reload_page('slideInDown');
}, 1000);
break;
case "slideOutLeft" :
setTimeout(function () {
$('#change-transitions').val("slideInLeft");
reload_page('slideInLeft');
}, 1000);
break;
case "slideOutRight" :
setTimeout(function () {
$('#change-transitions').val("slideInRight");
reload_page('slideInRight');
}, 1000);
break;
case "rollOut" :
setTimeout(function () {
$('#change-transitions').val("rollIn");
reload_page('rollIn');
}, 1000);
break;
case "hinge" :
setTimeout(function () {
$('#change-transitions').val("fadeInDown");
reload_page('fadeInDown');
}, 1000);
break;
}
});
function reload_page(animated) {
$("body").removeClass().addClass("animated " + animated);
}
});