Created
June 24, 2016 01:20
-
-
Save garrettmac/02c64e10ec278a34165aef822dad7835 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ng-class="tadaONchange" <---use this on an item | |
<button ng-click="tadaOnChange()"class="button">tada</button> | |
$rootScope.tadaOnChange = function(){ | |
console.log("$scope.tadaONchange: ",$scope.tadaONchange); | |
$scope.tadaONchange = "tada"; | |
$timeout(function () { | |
$scope.tadaONchange='' | |
console.log("$scope.tadaONchange: ",$scope.tadaONchange); | |
},1000) | |
}; | |
.tada{ | |
-webkit-animation-delay:1s !important; | |
-webkit-animation: tada !important; | |
animation: tada !important; | |
-webkit-animation-duration: 1s !important; | |
animation-duration: 1s !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment