-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.js
More file actions
30 lines (25 loc) · 716 Bytes
/
404.js
File metadata and controls
30 lines (25 loc) · 716 Bytes
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
var monkeySVG = Snap("#monkey_404");
var tail = monkeySVG.select("#tail");
var numberZero = monkeySVG.select("#number_0");
/*tail.path('M142.4,520c3.5-24.3-36.8-21.1-34.6,7.7c2.7,35.7,39,35.4,68,14.6c17.3-12.5,24.5-2.9,30.6,1.8c3.7,2.7,10.7,5.3,17.6-4.8');*/
var revert = function () {
tail.animate(
{
d:
"M89,315c2.2-15.2-23-13.2-21.6,4.8c1.7,22.3,24.4,22.1,42.5,9.1c10.8-7.8,15.3-1.8,19.1,1.1 c2.3,1.7,6.7,3.3,11-3"
},
1600,
mina.easeinout
);
};
setInterval(function () {
tail.animate(
{
d:
"M81,310c-8.8-6.5-20.8,6.5-15,18c7.4,14.5,22.5,10.8,31,3c9.8-9,18.9-5.6,22-2 c5.8,6.8,16.7,4.3,21-2"
},
1600,
mina.easeinout,
revert
);
}, 3200);