Skip to content

Instantly share code, notes, and snippets.

@garrettmac
Created June 24, 2016 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garrettmac/02c64e10ec278a34165aef822dad7835 to your computer and use it in GitHub Desktop.
Save garrettmac/02c64e10ec278a34165aef822dad7835 to your computer and use it in GitHub Desktop.
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