I am utilizing CSS animations to showcase a graph in my Angular application. However, the graph is only visible once an AJAX request has finished and actual data is available for display.
In order to achieve this, I am using ng-show
to conceal the graph element until the AJAX data is received. Once the data is retrieved, ng-show
will evaluate to false and the graph will be displayed. Unfortunately, this method seems to interfere with the CSS animation on the graph.
You can see the issue demonstrated in this JSFiddle: http://jsfiddle.net/2QR6h/
Here is the intended behavior: http://jsfiddle.net/2QR6h/1/
It appears that hiding the element using ng-show
/ng-hide
disrupts CSS animations.
Does anyone have a solution to work around this issue?