javascript - ng-show/ng-hide breaking CSS animations -
javascript - ng-show/ng-hide breaking CSS animations -
i'm using css animations display graph in angular app, graph can shown 1 time ajax request has completed , have info set graph.
to accomplish i'm using ng-show
hide graph's element until ajax data, @ point ng-show
evaluate false , graph show. unfortunately seems breaking css animation on graph.
here's jsfiddle demonstrating problem: http://jsfiddle.net/2qr6h/
and how it's supposed behave: http://jsfiddle.net/2qr6h/1/
so seems hiding element using ng-show
/ng-hide
breaks css animations.
anyone know way around this?
perhaps ng-show isn't breaking animation, might revealing graphic after animation has finished.
maybe seek using ng-class on class attributes, using ifs depend on scoped boolean set after $scope.data has been filled. maybe way animation won't able start until got css classes.
javascript css angularjs animation
Comments
Post a Comment