I'm building a hybrid app with Ionic https://ionicframework.com/. Now a have added some fancy charts with http://chartjs.org. All works perfect except that that some charts are not visible yet because the content is too large to display. So if the user scrolls down the chart is displayed correctly but I want it to animate once the chart is in within the visible area of the viewport.
I have tried various plugins out there but none of them seem to work.
https://www.npmjs.com/package/ng2-inview
https://www.npmjs.com/package/angular2-viewport
Some of those plugins simple do not registerer any scroll event and therefore do not work. Some only get triggered once (once the page is loaded).
So either I am using this plugins the wrong way, or they do not work properly on a smartphones virtual browser. Anyway If someone has some good idea, a better plugin or any input how I could make this work I would very appreciate it!
If there is no better way I would consider to implement this with pure javascript / jquery but not knowing if this works for each platform. (eg https://www.sitepoint.com/scroll-based-animations-jquery-css3/)
Thanks a lot folks!