168
rated 0 times
[
173]
[
5]
/ answers: 1 / hits: 16476
/ 10 Years ago, wed, april 16, 2014, 12:00:00
I am using animate.css to make animation on the same element. I am having a problem in removing the class after adding it.
HTML
<form ng-submit=animate() ng-controller=AnimateCtrl>
<input type='text' ng-model=some>
</form>
<div ng-class={shake:animation.shake} class=animated>
Angular
myapp.controller(function($scope){
var animation = $scope.animation = {
shake:false
};
$scope.animate=function(){
//remove the class first and add it back again
animation.shake = false
animation.shake = true
};
})
How can I remove the class after animation?
More From » css