I
I
Ivan Damaskin2016-07-19 16:21:50
Angular
Ivan Damaskin, 2016-07-19 16:21:50

How to make animation work after loading ionic framework content?

Hello. There is such a fairly popular animation service https://daneden.github.io/animate.css/
I select animation, add it to classes, everything works, but the problem is that after the application compiles, a preview with a logo is first shown approximately second and only then the content is loaded and, accordingly, during this second the animation has already worked in the content and it is not visible. How then to add classes so that the animation would work immediately after the preview.
At first I thought that I should use this function
.run(function($ionicPlatform) { }
, but it did not work out.
Tell me what function works after the preload and the content starts loading?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fetis26, 2016-07-19
@fetis26

I didn’t work with Ionic, but in theory this event twitches when everything is ready
https://cordova.apache.org/docs/en/latest/cordova/...
Here you need to put a class on the element so that the animation loses.
Ionic even has a special .ready() handler for this
ionicframework.com/docs/api/service/$ionicPlatform

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question