FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
code.angularjs.org/1.2.6/angular-animate.min.js at master · angular/code.angularjs.org · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Apr 17, 2025. It is now read-only.
angular
/
code.angularjs.org
Public archive
Notifications
You must be signed in to change notification settings
Fork
731
Star
149
Code
Issues
3
Pull requests
10
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
code.angularjs.org
/
1.2.6
/
angular-animate.min.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (23 loc) · 8.52 KB
Breadcrumbs
code.angularjs.org
/
1.2.6
/
angular-animate.min.js
Copy path
File metadata and controls
23 lines (23 loc) · 8.52 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
AngularJS v1.2.6
(c) 2010-2014 Google, Inc. http://angularjs.org
License: MIT
*/
(
function
(
E
,
p
,
F
)
{
'use strict'
;
p
.
module
(
"ngAnimate"
,
[
"ng"
]
)
.
config
(
[
"$provide"
,
"$animateProvider"
,
function
(
R
,
L
)
{
function
f
(
f
)
{
for
(
var
l
=
0
;
l
<
f
.
length
;
l
++
)
{
var
g
=
f
[
l
]
;
if
(
g
.
nodeType
==
W
)
return
g
}
}
var
q
=
p
.
noop
,
l
=
p
.
forEach
,
aa
=
L
.
$$selectors
,
W
=
1
,
g
=
"$$ngAnimateState"
,
C
=
"ng-animate"
,
k
=
{
running
:
!
0
}
;
R
.
decorator
(
"$animate"
,
[
"$delegate"
,
"$injector"
,
"$sniffer"
,
"$rootElement"
,
"$timeout"
,
"$rootScope"
,
"$document"
,
function
(
w
,
E
,
G
,
s
,
M
,
m
,
N
)
{
function
F
(
a
)
{
if
(
a
)
{
var
d
=
[
]
,
b
=
{
}
;
a
=
a
.
substr
(
1
)
.
split
(
"."
)
;
(
G
.
transitions
||
G
.
animations
)
&&
a
.
push
(
""
)
;
for
(
var
e
=
0
;
e
<
a
.
length
;
e
++
)
{
var
h
=
a
[
e
]
,
f
=
aa
[
h
]
;
f
&&
!
b
[
h
]
&&
(
d
.
push
(
E
.
get
(
f
)
)
,
b
[
h
]
=
!
0
)
}
return
d
}
}
function
r
(
a
,
d
,
b
,
e
,
h
,
k
,
m
)
{
function
p
(
a
)
{
u
(
)
;
if
(
!
0
===
a
)
v
(
)
;
else
{
if
(
a
=
b
.
data
(
g
)
)
a
.
done
=
v
,
b
.
data
(
g
,
a
)
;
s
(
t
,
"after"
,
v
)
}
}
function
s
(
e
,
f
,
h
)
{
var
n
=
f
+
"End"
;
l
(
e
,
function
(
l
,
g
)
{
var
c
=
function
(
)
{
a:
{
var
c
=
f
+
"Complete"
,
a
=
e
[
g
]
;
a
[
c
]
=
!
0
;
(
a
[
n
]
||
q
)
(
)
;
for
(
a
=
0
;
a
<
e
.
length
;
a
++
)
if
(
!
e
[
a
]
[
c
]
)
break
a
;
h
(
)
}
}
;
"before"
!=
f
||
"enter"
!=
a
&&
"move"
!=
a
?
l
[
f
]
?
l
[
n
]
=
B
?
l
[
f
]
(
b
,
d
,
c
)
:
l
[
f
]
(
b
,
c
)
:
c
(
)
:
c
(
)
}
)
}
function
w
(
)
{
m
&&
M
(
m
,
0
,
!
1
)
}
function
u
(
)
{
u
.
hasBeenRun
||
(
u
.
hasBeenRun
=
!
0
,
k
(
)
)
}
function
v
(
)
{
if
(
!
v
.
hasBeenRun
)
{
v
.
hasBeenRun
=
!
0
;
var
a
=
b
.
data
(
g
)
;
a
&&
(
B
?
D
(
b
)
:
(
a
.
closeAnimationTimeout
=
M
(
function
(
)
{
D
(
b
)
}
,
0
,
!
1
)
,
b
.
data
(
g
,
a
)
)
)
;
w
(
)
}
}
var
n
,
z
,
r
=
f
(
b
)
;
r
&&
(
n
=
r
.
className
,
z
=
n
+
" "
+
d
)
;
if
(
r
&&
O
(
z
)
)
{
z
=
(
" "
+
z
)
.
replace
(
/
\s
+
/
g
,
"."
)
;
e
||
(
e
=
h
?
h
.
parent
(
)
:
b
.
parent
(
)
)
;
z
=
F
(
z
)
;
var
B
=
"addClass"
==
a
||
"removeClass"
==
a
;
h
=
b
.
data
(
g
)
||
{
}
;
if
(
Q
(
b
,
e
)
||
0
===
z
.
length
)
u
(
)
,
v
(
)
;
else
{
var
t
=
[
]
;
h
.
running
&&
B
&&
h
.
structural
||
l
(
z
,
function
(
e
)
{
if
(
!
e
.
allowCancel
||
e
.
allowCancel
(
b
,
a
,
d
)
)
{
var
f
=
e
[
a
]
;
"leave"
==
a
?
(
e
=
f
,
f
=
null
)
:
e
=
e
[
"before"
+
a
.
charAt
(
0
)
.
toUpperCase
(
)
+
a
.
substr
(
1
)
]
;
t
.
push
(
{
before
:
e
,
after
:
f
}
)
}
}
)
;
0
===
t
.
length
?
(
u
(
)
,
w
(
)
)
:
(
e
=
" "
+
n
+
" "
,
h
.
running
&&
(
M
.
cancel
(
h
.
closeAnimationTimeout
)
,
D
(
b
)
,
I
(
h
.
animations
)
,
h
.
beforeComplete
?
(
h
.
done
||
q
)
(
!
0
)
:
B
&&
!
h
.
structural
&&
(
e
=
"removeClass"
==
h
.
event
?
e
.
replace
(
h
.
className
,
""
)
:
e
+
h
.
className
+
" "
)
)
,
n
=
" "
+
d
+
" "
,
"addClass"
==
a
&&
0
<=
e
.
indexOf
(
n
)
||
"removeClass"
==
a
&&
-
1
==
e
.
indexOf
(
n
)
?
(
u
(
)
,
w
(
)
)
:
(
b
.
addClass
(
C
)
,
b
.
data
(
g
,
{
running
:
!
0
,
event
:
a
,
className
:
d
,
structural
:
!
B
,
animations
:
t
,
done
:
p
}
)
,
s
(
t
,
"before"
,
p
)
)
)
}
}
else
u
(
)
,
v
(
)
}
function
J
(
a
)
{
a
=
f
(
a
)
;
l
(
a
.
querySelectorAll
(
"."
+
C
)
,
function
(
a
)
{
a
=
p
.
element
(
a
)
;
var
b
=
a
.
data
(
g
)
;
b
&&
(
I
(
b
.
animations
)
,
D
(
a
)
)
}
)
}
function
I
(
a
)
{
l
(
a
,
function
(
d
)
{
a
.
beforeComplete
||
(
d
.
beforeEnd
||
q
)
(
!
0
)
;
a
.
afterComplete
||
(
d
.
afterEnd
||
q
)
(
!
0
)
}
)
}
function
D
(
a
)
{
f
(
a
)
==
f
(
s
)
?
k
.
disabled
||
(
k
.
running
=
!
1
,
k
.
structural
=
!
1
)
:
(
a
.
removeClass
(
C
)
,
a
.
removeData
(
g
)
)
}
function
Q
(
a
,
d
)
{
if
(
k
.
disabled
)
return
!
0
;
if
(
f
(
a
)
==
f
(
s
)
)
return
k
.
disabled
||
k
.
running
;
do
{
if
(
0
===
d
.
length
)
break
;
var
b
=
f
(
d
)
==
f
(
s
)
,
e
=
b
?
k
:
d
.
data
(
g
)
,
e
=
e
&&
(
!
!
e
.
disabled
||
!
!
e
.
running
)
;
if
(
b
||
e
)
return
e
;
if
(
b
)
break
}
while
(
d
=
d
.
parent
(
)
)
;
return
!
0
}
s
.
data
(
g
,
k
)
;
m
.
$$postDigest
(
function
(
)
{
m
.
$$postDigest
(
function
(
)
{
k
.
running
=
!
1
}
)
}
)
;
var
K
=
L
.
classNameFilter
(
)
,
O
=
K
?
function
(
a
)
{
return
K
.
test
(
a
)
}
:
function
(
)
{
return
!
0
}
;
return
{
enter
:
function
(
a
,
d
,
b
,
e
)
{
this
.
enabled
(
!
1
,
a
)
;
w
.
enter
(
a
,
d
,
b
)
;
m
.
$$postDigest
(
function
(
)
{
r
(
"enter"
,
"ng-enter"
,
a
,
d
,
b
,
q
,
e
)
}
)
}
,
leave
:
function
(
a
,
d
)
{
J
(
a
)
;
this
.
enabled
(
!
1
,
a
)
;
m
.
$$postDigest
(
function
(
)
{
r
(
"leave"
,
"ng-leave"
,
a
,
null
,
null
,
function
(
)
{
w
.
leave
(
a
)
}
,
d
)
}
)
}
,
move
:
function
(
a
,
d
,
b
,
e
)
{
J
(
a
)
;
this
.
enabled
(
!
1
,
a
)
;
w
.
move
(
a
,
d
,
b
)
;
m
.
$$postDigest
(
function
(
)
{
r
(
"move"
,
"ng-move"
,
a
,
d
,
b
,
q
,
e
)
}
)
}
,
addClass
:
function
(
a
,
d
,
b
)
{
r
(
"addClass"
,
d
,
a
,
null
,
null
,
function
(
)
{
w
.
addClass
(
a
,
d
)
}
,
b
)
}
,
removeClass
:
function
(
a
,
d
,
b
)
{
r
(
"removeClass"
,
d
,
a
,
null
,
null
,
function
(
)
{
w
.
removeClass
(
a
,
d
)
}
,
b
)
}
,
enabled
:
function
(
a
,
d
)
{
switch
(
arguments
.
length
)
{
case
2
:
if
(
a
)
D
(
d
)
;
else
{
var
b
=
d
.
data
(
g
)
||
{
}
;
b
.
disabled
=
!
0
;
d
.
data
(
g
,
b
)
}
break
;
case
1
:
k
.
disabled
=
!
a
;
break
;
default
:
a
=
!
k
.
disabled
}
return
!
!
a
}
}
}
]
)
;
L
.
register
(
""
,
[
"$window"
,
"$sniffer"
,
"$timeout"
,
function
(
g
,
k
,
G
)
{
function
s
(
c
,
a
)
{
G
.
cancel
(
V
)
;
T
.
push
(
a
)
;
var
y
=
f
(
c
)
;
c
=
p
.
element
(
y
)
;
U
.
push
(
c
)
;
y
=
c
.
data
(
n
)
;
P
=
Math
.
max
(
P
,
(
y
.
maxDelay
+
y
.
maxDuration
)
*
R
*
B
)
;
y
.
animationCount
=
t
;
V
=
G
(
function
(
)
{
l
(
T
,
function
(
c
)
{
c
(
)
}
)
;
var
c
=
[
]
,
a
=
t
;
l
(
U
,
function
(
a
)
{
c
.
push
(
a
)
}
)
;
G
(
function
(
)
{
M
(
c
,
a
)
;
c
=
null
}
,
P
,
!
1
)
;
T
=
[
]
;
U
=
[
]
;
V
=
null
;
H
=
{
}
;
P
=
0
;
t
++
}
,
10
,
!
1
)
}
function
M
(
c
,
a
)
{
l
(
c
,
function
(
c
)
{
(
c
=
c
.
data
(
n
)
)
&&
c
.
animationCount
==
a
&&
(
c
.
closeAnimationFn
||
q
)
(
)
}
)
}
function
m
(
c
,
a
)
{
var
y
=
a
?
H
[
a
]
:
null
;
if
(
!
y
)
{
var
b
=
0
,
d
=
0
,
f
=
0
,
h
=
0
,
n
,
k
,
m
,
p
;
l
(
c
,
function
(
c
)
{
if
(
c
.
nodeType
==
W
)
{
c
=
g
.
getComputedStyle
(
c
)
||
{
}
;
m
=
c
[
e
+
X
]
;
b
=
Math
.
max
(
N
(
m
)
,
b
)
;
p
=
c
[
e
+
S
]
;
n
=
c
[
e
+
Z
]
;
d
=
Math
.
max
(
N
(
n
)
,
d
)
;
k
=
c
[
x
+
Z
]
;
h
=
Math
.
max
(
N
(
k
)
,
h
)
;
var
a
=
N
(
c
[
x
+
X
]
)
;
0
<
a
&&
(
a
*=
parseInt
(
c
[
x
+
u
]
,
10
)
||
1
)
;
f
=
Math
.
max
(
a
,
f
)
}
}
)
;
y
=
{
total
:
0
,
transitionPropertyStyle
:
p
,
transitionDurationStyle
:
m
,
transitionDelayStyle
:
n
,
transitionDelay
:
d
,
transitionDuration
:
b
,
animationDelayStyle
:
k
,
animationDelay
:
h
,
animationDuration
:
f
}
;
a
&&
(
H
[
a
]
=
y
)
}
return
y
}
function
N
(
c
)
{
var
a
=
0
;
c
=
p
.
isString
(
c
)
?
c
.
split
(
/
\s
*
,
\s
*
/
)
:
[
]
;
l
(
c
,
function
(
c
)
{
a
=
Math
.
max
(
parseFloat
(
c
)
||
0
,
a
)
}
)
;
return
a
}
function
L
(
c
)
{
var
a
=
c
.
parent
(
)
,
b
=
a
.
data
(
v
)
;
b
||
(
a
.
data
(
v
,
++
Y
)
,
b
=
Y
)
;
return
b
+
"-"
+
f
(
c
)
.
className
}
function
r
(
c
,
a
)
{
var
b
=
L
(
c
)
,
d
=
b
+
" "
+
a
,
h
=
{
}
,
$
=
H
[
d
]
?
++
H
[
d
]
.
total
:
0
;
if
(
0
<
$
)
{
var
g
=
a
+
"-stagger"
,
h
=
b
+
" "
+
g
;
(
b
=
!
H
[
h
]
)
&&
c
.
addClass
(
g
)
;
h
=
m
(
c
,
h
)
;
b
&&
c
.
removeClass
(
g
)
}
c
.
addClass
(
a
)
;
d
=
m
(
c
,
d
)
;
g
=
Math
.
max
(
d
.
transitionDelay
,
d
.
animationDelay
)
;
b
=
Math
.
max
(
d
.
transitionDuration
,
d
.
animationDuration
)
;
if
(
0
===
b
)
return
c
.
removeClass
(
a
)
,
!
1
;
var
k
=
""
;
0
<
d
.
transitionDuration
?
f
(
c
)
.
style
[
e
+
S
]
=
"none"
:
f
(
c
)
.
style
[
x
]
=
"none 0s"
;
l
(
a
.
split
(
" "
)
,
function
(
c
,
a
)
{
k
+=
(
0
<
a
?
" "
:
""
)
+
c
+
"-active"
}
)
;
c
.
data
(
n
,
{
className
:
a
,
activeClassName
:
k
,
maxDuration
:
b
,
maxDelay
:
g
,
classes
:
a
+
" "
+
k
,
timings
:
d
,
stagger
:
h
,
ii
:
$
}
)
;
return
!
0
}
function
J
(
c
)
{
var
a
=
e
+
S
;
c
=
f
(
c
)
;
c
.
style
[
a
]
&&
0
<
c
.
style
[
a
]
.
length
&&
(
c
.
style
[
a
]
=
""
)
}
function
I
(
c
)
{
var
a
=
x
;
c
=
f
(
c
)
;
c
.
style
[
a
]
&&
0
<
c
.
style
[
a
]
.
length
&&
(
c
.
style
[
a
]
=
""
)
}
function
D
(
c
,
a
,
d
)
{
function
e
(
b
)
{
c
.
off
(
u
,
g
)
;
c
.
removeClass
(
r
)
;
b
=
c
;
b
.
removeClass
(
a
)
;
b
.
removeData
(
n
)
;
b
=
f
(
c
)
;
for
(
var
d
in
q
)
b
.
style
.
removeProperty
(
q
[
d
]
)
}
function
g
(
a
)
{
a
.
stopPropagation
(
)
;
var
c
=
a
.
originalEvent
||
a
;
a
=
c
.
$manualTimeStamp
||
c
.
timeStamp
||
Date
.
now
(
)
;
c
=
parseFloat
(
c
.
elapsedTime
.
toFixed
(
z
)
)
;
Math
.
max
(
a
-
w
,
0
)
>=
v
&&
c
>=
s
&&
d
(
)
}
var
k
=
c
.
data
(
n
)
,
l
=
f
(
c
)
;
if
(
-
1
!=
l
.
className
.
indexOf
(
a
)
&&
k
)
{
var
m
=
k
.
timings
,
p
=
k
.
stagger
,
s
=
k
.
maxDuration
,
r
=
k
.
activeClassName
,
v
=
Math
.
max
(
m
.
transitionDelay
,
m
.
animationDelay
)
*
B
,
w
=
Date
.
now
(
)
,
u
=
C
+
" "
+
h
,
t
=
k
.
ii
,
A
=
""
,
q
=
[
]
;
if
(
0
<
m
.
transitionDuration
)
{
var
x
=
m
.
transitionPropertyStyle
;
-
1
==
x
.
indexOf
(
"all"
)
&&
(
A
+=
b
+
"transition-property: "
+
x
+
";"
,
A
+=
b
+
"transition-duration: "
+
m
.
transitionDurationStyle
+
"s;"
,
q
.
push
(
b
+
"transition-property"
)
,
q
.
push
(
b
+
"transition-duration"
)
)
}
0
<
t
&&
(
0
<
p
.
transitionDelay
&&
0
===
p
.
transitionDuration
&&
(
A
+=
b
+
"transition-delay: "
+
Q
(
m
.
transitionDelayStyle
,
p
.
transitionDelay
,
t
)
+
"; "
,
q
.
push
(
b
+
"transition-delay"
)
)
,
0
<
p
.
animationDelay
&&
0
===
p
.
animationDuration
&&
(
A
+=
b
+
"animation-delay: "
+
Q
(
m
.
animationDelayStyle
,
p
.
animationDelay
,
t
)
+
"; "
,
q
.
push
(
b
+
"animation-delay"
)
)
)
;
0
<
q
.
length
&&
(
m
=
l
.
getAttribute
(
"style"
)
||
""
,
l
.
setAttribute
(
"style"
,
m
+
" "
+
A
)
)
;
c
.
on
(
u
,
g
)
;
c
.
addClass
(
r
)
;
k
.
closeAnimationFn
=
function
(
)
{
e
(
)
;
d
(
)
}
;
return
e
}
d
(
)
}
function
Q
(
a
,
b
,
d
)
{
var
e
=
""
;
l
(
a
.
split
(
","
)
,
function
(
a
,
c
)
{
e
+=
(
0
<
c
?
","
:
""
)
+
(
d
*
b
+
parseInt
(
a
,
10
)
)
+
"s"
}
)
;
return
e
}
function
K
(
a
,
b
)
{
if
(
r
(
a
,
b
)
)
return
function
(
d
)
{
d
&&
(
a
.
removeClass
(
b
)
,
a
.
removeData
(
n
)
)
}
}
function
O
(
a
,
b
,
d
)
{
if
(
a
.
data
(
n
)
)
return
D
(
a
,
b
,
d
)
;
a
.
removeClass
(
b
)
;
a
.
removeData
(
n
)
;
d
(
)
}
function
a
(
a
,
b
,
d
)
{
var
e
=
K
(
a
,
b
)
;
if
(
e
)
{
var
f
=
e
;
s
(
a
,
function
(
)
{
J
(
a
)
;
I
(
a
)
;
f
=
O
(
a
,
b
,
d
)
}
)
;
return
function
(
a
)
{
(
f
||
q
)
(
a
)
}
}
d
(
)
}
function
d
(
a
,
b
)
{
var
d
=
""
;
a
=
p
.
isArray
(
a
)
?
a
:
a
.
split
(
/
\s
+
/
)
;
l
(
a
,
function
(
a
,
c
)
{
a
&&
0
<
a
.
length
&&
(
d
+=
(
0
<
c
?
" "
:
""
)
+
a
+
b
)
}
)
;
return
d
}
var
b
=
""
,
e
,
h
,
x
,
C
;
E
.
ontransitionend
===
F
&&
E
.
onwebkittransitionend
!==
F
?
(
b
=
"-webkit-"
,
e
=
"WebkitTransition"
,
h
=
"webkitTransitionEnd transitionend"
)
:
(
e
=
"transition"
,
h
=
"transitionend"
)
;
E
.
onanimationend
===
F
&&
E
.
onwebkitanimationend
!==
F
?
(
b
=
"-webkit-"
,
x
=
"WebkitAnimation"
,
C
=
"webkitAnimationEnd animationend"
)
:
(
x
=
"animation"
,
C
=
"animationend"
)
;
var
X
=
"Duration"
,
S
=
"Property"
,
Z
=
"Delay"
,
u
=
"IterationCount"
,
v
=
"$$ngAnimateKey"
,
n
=
"$$ngAnimateCSS3Data"
,
z
=
3
,
R
=
1.5
,
B
=
1E3
,
t
=
0
,
H
=
{
}
,
Y
=
0
,
T
=
[
]
,
U
=
[
]
,
V
,
P
=
0
;
return
{
allowCancel
:
function
(
a
,
b
,
e
)
{
var
h
=
(
a
.
data
(
n
)
||
{
}
)
.
classes
;
if
(
!
h
||
0
<=
[
"enter"
,
"leave"
,
"move"
]
.
indexOf
(
b
)
)
return
!
0
;
var
k
=
a
.
parent
(
)
,
g
=
p
.
element
(
f
(
a
)
.
cloneNode
(
)
)
;
g
.
attr
(
"style"
,
"position:absolute; top:-9999px; left:-9999px"
)
;
g
.
removeAttr
(
"id"
)
;
g
.
empty
(
)
;
l
(
h
.
split
(
" "
)
,
function
(
a
)
{
g
.
removeClass
(
a
)
}
)
;
g
.
addClass
(
d
(
e
,
"addClass"
==
b
?
"-add"
:
"-remove"
)
)
;
k
.
append
(
g
)
;
a
=
m
(
g
)
;
g
.
remove
(
)
;
return
0
<
Math
.
max
(
a
.
transitionDuration
,
a
.
animationDuration
)
}
,
enter
:
function
(
c
,
b
)
{
return
a
(
c
,
"ng-enter"
,
b
)
}
,
leave
:
function
(
c
,
b
)
{
return
a
(
c
,
"ng-leave"
,
b
)
}
,
move
:
function
(
c
,
b
)
{
return
a
(
c
,
"ng-move"
,
b
)
}
,
beforeAddClass
:
function
(
a
,
b
,
e
)
{
if
(
b
=
K
(
a
,
d
(
b
,
"-add"
)
)
)
return
s
(
a
,
function
(
)
{
J
(
a
)
;
I
(
a
)
;
e
(
)
}
)
,
b
;
e
(
)
}
,
addClass
:
function
(
a
,
b
,
e
)
{
return
O
(
a
,
d
(
b
,
"-add"
)
,
e
)
}
,
beforeRemoveClass
:
function
(
a
,
b
,
e
)
{
if
(
b
=
K
(
a
,
d
(
b
,
"-remove"
)
)
)
return
s
(
a
,
function
(
)
{
J
(
a
)
;
I
(
a
)
;
e
(
)
}
)
,
b
;
e
(
)
}
,
removeClass
:
function
(
a
,
b
,
e
)
{
return
O
(
a
,
d
(
b
,
"-remove"
)
,
e
)
}
}
}
]
)
}
]
)
}
)
(
window
,
window
.
angular
)
;
//# sourceMappingURL=angular-animate.min.js.map
Back
|
FazBrowse Home
|
New Git URL