11/*
22 * animate.js - animate-dynamic.ga
3- * Version - v2.9.2
3+ * Version - v2.10.3
44 * Licensed under the MIT license - https://opensource.org/licenses/MIT
55
66 * Copyright (c) 2021 Mohammed Khurram (KodingKhurram)
@@ -108,17 +108,19 @@ function click_Animations(){
108108 //on Click
109109 if ( $ ( this ) . hasClass ( "aniUtil_onClick" ) ) {
110110 $ ( this ) . click ( function ( ) {
111- if ( $ ( this ) . hasClass ( "aniUtil_dramatic" ) ) {
112- $ ( this ) . css ( "opacity" , 100 ) ;
113- }
114- $ ( this ) . addClass ( ani_classes ) ;
115- if ( $ ( this ) . hasClass ( "aniUtil_active" ) ) {
116- this . addEventListener ( 'animationend' , ( ) => {
117- $ ( this ) . removeClass ( ani_classes ) ;
118- } ) ;
119- }
120- else {
121- $ ( this ) . removeClass ( "aniUtil_onClick" ) ;
111+ if ( ! $ ( this ) . hasClass ( "aniUtil_disabled" ) ) {
112+ if ( $ ( this ) . hasClass ( "aniUtil_dramatic" ) ) {
113+ $ ( this ) . css ( "opacity" , 100 ) ;
114+ }
115+ $ ( this ) . addClass ( ani_classes ) ;
116+ if ( $ ( this ) . hasClass ( "aniUtil_active" ) ) {
117+ this . addEventListener ( 'animationend' , ( ) => {
118+ $ ( this ) . removeClass ( ani_classes ) ;
119+ } ) ;
120+ }
121+ else {
122+ $ ( this ) . removeClass ( "aniUtil_onClick" ) ;
123+ }
122124 }
123125 } ) ;
124126 }
@@ -129,7 +131,7 @@ function click_Animations(){
129131 //on Click
130132 $ ( "*[class*='aniCus_clickDisabled']:not([class*='aniUtil_disabled'])" ) . each ( function ( ) {
131133 $ ( this ) . click ( function ( ) {
132- if ( $ ( this ) . hasClass ( "aniCus_clickDisabled" ) && ( ! $ ( this ) . hasClass ( "aniUtil_disabled" ) ) ) {
134+ if ( ! $ ( this ) . hasClass ( "aniUtil_disabled" ) ) {
133135 $ ( this ) . attr ( 'style' , 'border: 2px solid red !important' ) ;
134136 $ ( this ) . addClass ( "animate__animated animate__shakeX animate__faster" ) ;
135137 this . addEventListener ( 'animationend' , ( ) => {
0 commit comments