animate.css - Animation sequence using AngularJS addClass/removeClass -
I am trying to create an animation sequence by adding call to addClass / removeClass.
The end animation method is called "removeClass" to remove the animation and to start a new one but for some reason, nothing happens, I am trying to explain why this work does not? Why not remove the class?
$ animate.addClass (element, 'fadeInDown'). Then (function () {$ animate.removeClass (element, 'feedindown'); // why not doing it? $ Animated.ad class (element, 'fedautontown');}); The full version can be found here
You can see this high made in your Happy:
var myApp = angular.module ('myApp', ['ngAnimate']); MyApp.controller ('Admin', function ($ scope) {}); myApp.directive ('Animated', ['$ Animate', '$ Window', Function ($ Animate, $ Window) {Return Function (Scope, Element, Ethers) {Scope.General = Function} {$ animate.addClass ( Element ('function') {$ animate.removeClass (element, 'feedindown'); // Why is it not working? Setimetime (function () {scope $ apply (function () { $ animate.addClass (Element, 'Fade Autotown');});}, 0);}}}}}}}}])); I am trying to get a pure CSS solution to clean the code. You can take an eye for example
Comments
Post a Comment