File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /***********************************************
2+ * Animation Settings
3+ ***********************************************/
4+
5+ function animate ( options ) {
6+ var animationName = "animated " + options . name ;
7+ var animationEnd = "webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend" ;
8+ $ ( options . selector )
9+ . addClass ( animationName )
10+ . one ( animationEnd ,
11+ function ( ) {
12+ $ ( this ) . removeClass ( animationName ) ;
13+ }
14+ ) ;
15+ }
Original file line number Diff line number Diff line change 1+ .animated {
2+ animation-duration : .5s ;
3+ animation-delay : .1s ;
4+ }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ $(function() {
22 $ ( '.nav-profile > li > a' ) . on ( 'click' , function ( ) {
33 var $el = $ ( this ) . next ( ) ;
44
5- setAnimation ( {
5+ animate ( {
66 name : 'flipInX' ,
77 selector : $el
88 } ) ;
Original file line number Diff line number Diff line change 11$ ( function ( ) {
2- setAnimation ( {
2+ animate ( {
33 name : 'flipInY' ,
44 selector : '.error-card > .error-title-block'
55 } ) ;
@@ -8,7 +8,7 @@ $(function() {
88 setTimeout ( function ( ) {
99 var $el = $ ( '.error-card > .error-container' ) ;
1010
11- setAnimation ( {
11+ animate ( {
1212 name : 'fadeInUp' ,
1313 selector : $el
1414 } ) ;
Original file line number Diff line number Diff line change 11$ ( function ( ) {
2- setAnimation ( {
2+ animate ( {
33 name : 'pulse' ,
44 selector : '.auth-container > .card'
55 } ) ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ $(function() {
2222 agree : "Please accept our policy"
2323 } ,
2424 invalidHandler : function ( ) {
25- setAnimation ( {
25+ animate ( {
2626 name : 'shake' ,
2727 selector : '.auth-container > .card'
2828 } ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ $(function() {
1818 }
1919 } ,
2020 invalidHandler : function ( ) {
21- setAnimation ( {
21+ animate ( {
2222 name : 'shake' ,
2323 selector : '.auth-container > .card'
2424 } ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ $(function() {
7575 agree : "Please accept our policy"
7676 } ,
7777 invalidHandler : function ( ) {
78- setAnimation ( {
78+ animate ( {
7979 name : 'shake' ,
8080 selector : '.auth-container > .card'
8181 } ) ;
Original file line number Diff line number Diff line change @@ -13,21 +13,4 @@ $(function() {
1313NProgress . start ( ) ;
1414
1515// end loading bar
16- NProgress . done ( ) ;
17-
18-
19- /***********************************************
20- * Animation Settings
21- ***********************************************/
22-
23- function setAnimation ( options ) {
24- var animationName = "animated " + options . name ;
25- var animationEnd = "webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend" ;
26- $ ( options . selector )
27- . addClass ( animationName )
28- . one ( animationEnd ,
29- function ( ) {
30- $ ( this ) . removeClass ( animationName ) ;
31- }
32- ) ;
33- }
16+ NProgress . done ( ) ;
You can’t perform that action at this time.
0 commit comments