FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScript201708/animate.min.js at master · Coco-Code/JavaScript201708 · GitHub
Coco-Code
JavaScript201708
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScript201708
/
animate.min.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
1 lines (1 loc) · 3.5 KB
Breadcrumbs
JavaScript201708
/
animate.min.js
Copy path
File metadata and controls
1 lines (1 loc) · 3.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
"use strict"
;
~
function
(
)
{
function
n
(
n
)
{
var
e
=
{
curEle
:
null
,
target
:
null
,
duration
:
1e3
,
effect
:
t
.
Linear
,
callBack
:
null
}
;
for
(
var
r
in
n
)
n
.
hasOwnProperty
(
r
)
&&
(
e
[
r
]
=
n
[
r
]
)
;
var
u
=
e
.
curEle
,
a
=
e
.
target
,
i
=
e
.
duration
,
s
=
e
.
effect
,
o
=
e
.
callBack
,
c
=
0
,
f
=
{
}
,
h
=
{
}
;
for
(
var
M
in
a
)
a
.
hasOwnProperty
(
M
)
&&
(
f
[
M
]
=
utils
.
css
(
u
,
M
)
,
h
[
M
]
=
a
[
M
]
-
f
[
M
]
)
;
clearInterval
(
u
.
animateTimer
)
,
u
.
animateTimer
=
setInterval
(
function
(
)
{
if
(
(
c
+=
17
)
>=
i
)
return
utils
.
css
(
u
,
a
)
,
clearInterval
(
u
.
animateTimer
)
,
void
(
o
&&
o
.
call
(
u
)
)
;
var
n
=
{
}
;
for
(
var
t
in
a
)
a
.
hasOwnProperty
(
t
)
&&
(
n
[
t
]
=
s
(
c
,
f
[
t
]
,
h
[
t
]
,
i
)
)
;
utils
.
css
(
u
,
n
)
}
,
17
)
}
var
t
=
{
Linear
:
function
(
n
,
t
,
e
,
r
)
{
return
e
*
n
/
r
+
t
}
,
Bounce
:
{
easeIn
:
function
(
n
,
e
,
r
,
u
)
{
return
r
-
t
.
Bounce
.
easeOut
(
u
-
n
,
0
,
r
,
u
)
+
e
}
,
easeOut
:
function
(
n
,
t
,
e
,
r
)
{
return
(
n
/=
r
)
<
1
/
2.75
?
e
*
(
7.5625
*
n
*
n
)
+
t
:
n
<
2
/
2.75
?
e
*
(
7.5625
*
(
n
-=
1.5
/
2.75
)
*
n
+
.75
)
+
t
:
n
<
2.5
/
2.75
?
e
*
(
7.5625
*
(
n
-=
2.25
/
2.75
)
*
n
+
.9375
)
+
t
:
e
*
(
7.5625
*
(
n
-=
2.625
/
2.75
)
*
n
+
.984375
)
+
t
}
,
easeInOut
:
function
(
n
,
e
,
r
,
u
)
{
return
n
<
u
/
2
?
.5
*
t
.
Bounce
.
easeIn
(
2
*
n
,
0
,
r
,
u
)
+
e
:
.5
*
t
.
Bounce
.
easeOut
(
2
*
n
-
u
,
0
,
r
,
u
)
+
.5
*
r
+
e
}
}
,
Quad
:
{
easeIn
:
function
(
n
,
t
,
e
,
r
)
{
return
e
*
(
n
/=
r
)
*
n
+
t
}
,
easeOut
:
function
(
n
,
t
,
e
,
r
)
{
return
-
e
*
(
n
/=
r
)
*
(
n
-
2
)
+
t
}
,
easeInOut
:
function
(
n
,
t
,
e
,
r
)
{
return
(
n
/=
r
/
2
)
<
1
?
e
/
2
*
n
*
n
+
t
:
-
e
/
2
*
(
--
n
*
(
n
-
2
)
-
1
)
+
t
}
}
,
Cubic
:
{
easeIn
:
function
(
n
,
t
,
e
,
r
)
{
return
e
*
(
n
/=
r
)
*
n
*
n
+
t
}
,
easeOut
:
function
(
n
,
t
,
e
,
r
)
{
return
e
*
(
(
n
=
n
/
r
-
1
)
*
n
*
n
+
1
)
+
t
}
,
easeInOut
:
function
(
n
,
t
,
e
,
r
)
{
return
(
n
/=
r
/
2
)
<
1
?
e
/
2
*
n
*
n
*
n
+
t
:
e
/
2
*
(
(
n
-=
2
)
*
n
*
n
+
2
)
+
t
}
}
,
Quart
:
{
easeIn
:
function
(
n
,
t
,
e
,
r
)
{
return
e
*
(
n
/=
r
)
*
n
*
n
*
n
+
t
}
,
easeOut
:
function
(
n
,
t
,
e
,
r
)
{
return
-
e
*
(
(
n
=
n
/
r
-
1
)
*
n
*
n
*
n
-
1
)
+
t
}
,
easeInOut
:
function
(
n
,
t
,
e
,
r
)
{
return
(
n
/=
r
/
2
)
<
1
?
e
/
2
*
n
*
n
*
n
*
n
+
t
:
-
e
/
2
*
(
(
n
-=
2
)
*
n
*
n
*
n
-
2
)
+
t
}
}
,
Quint
:
{
easeIn
:
function
(
n
,
t
,
e
,
r
)
{
return
e
*
(
n
/=
r
)
*
n
*
n
*
n
*
n
+
t
}
,
easeOut
:
function
(
n
,
t
,
e
,
r
)
{
return
e
*
(
(
n
=
n
/
r
-
1
)
*
n
*
n
*
n
*
n
+
1
)
+
t
}
,
easeInOut
:
function
(
n
,
t
,
e
,
r
)
{
return
(
n
/=
r
/
2
)
<
1
?
e
/
2
*
n
*
n
*
n
*
n
*
n
+
t
:
e
/
2
*
(
(
n
-=
2
)
*
n
*
n
*
n
*
n
+
2
)
+
t
}
}
,
Sine
:
{
easeIn
:function(n,t,e,r){return-e*Math.cos(n/r*(Math.PI/2))+e+t},easeOut:function(n,t,e,r){return e*Math.sin(n/r*(Math.PI/2))+t},easeInOut:function(n,t,e,r){return-e/2*(Math.cos(Math.PI*n/r)-1)+t}},Expo:{easeIn:function(n,t,e,r){return 0==n?t:e*Math.pow(2,10*(n/r-1))+t},easeOut:function(n,t,e,r){return n==r?t+e:e*(1-Math.pow(2,-10*n/r))+t},easeInOut:function(n,t,e,r){return 0==n?t:n==r?t+e:(n/=r/2)<1?e/2*Math.pow(2,10*(n-1))+t:e/2*(2-Math.pow(2,-10*--n))+t}},Circ:{easeIn:function(n,t,e,r){return-e*(Math.sqrt(1-(n/=r)*n)-1)+t},easeOut:function(n,t,e,r){return e*Math.sqrt(1-(n=n/r-1)*n)+t},easeInOut:function(n,t,e,r){return(n/=r/2)<1?-e/2*(Math.sqrt(1-n*n)-1)+t:e/2*(Math.sqrt(1-(n-=2)*n)+1)+t}},Back:{easeIn:function(n,t,e,r,u){return void 0==u&&(u=1.70158),e*(n/=r)*n*((u+1)*n-u)+t},easeOut:function(n,t,e,r,u){return void 0==u&&(u=1.70158),e*((n=n/r-1)*n*((u+1)*n+u)+1)+t},easeInOut:function(n,t,e,r,u){return void 0==u&&(u=1.70158),(n/=r/2)<1?e/2*(n*n*((1+(u*=1.525))*n-u))+t:e/2*((n-=2)*n*((1+(u*=1.525))*n+u)+2)+t}},Elastic:{easeIn:function(n,t,e,r,u,a){if(0==n)return t;if(1==(n/=r))return t+e;a||(a=.3*r);var i;return!u||u<Math.abs(e)?(u=e,i=a/4):i=a/(2*Math.PI)*Math.asin(e/u),-u*Math.pow(2,10*(n-=1))*Math.sin((n*r-i)*(2*Math.PI)/a)+t},easeOut:function(n,t,e,r,u,a){if(0==n)return t;if(1==(n/=r))return t+e;a||(a=.3*r);var i;return!u||u<Math.abs(e)?(u=e,i=a/4):i=a/(2*Math.PI)*Math.asin(e/u),u*Math.pow(2,-10*n)*Math.sin((n*r-i)*(2*Math.PI)/a)+e+t},easeInOut:function(n,t,e,r,u,a){if(0==n)return t;if(2==(n/=r/2))return t+e;a||(a=r*(.3*1.5));var i;return!u||u<Math.abs(e)?(u=e,i=a/4):i=a/(2*Math.PI)*Math.asin(e/u),n<1?u*Math.pow(2,10*(n-=1))*Math.sin((n*r-i)*(2*Math.PI)/a)*-.5+t:u*Math.pow(2,-10*(n-=1))*Math.sin((n*r-i)*(2*Math.PI)/a)*.5+e+t}}};window.zhufengEffect=t,window.zhufengAnimate=n}();
Back
|
FazBrowse Home
|
New Git URL