I’m trying to use Angular’s Browser Animations Module which has trigger, state, transition.
I properly installed & imported BrowserAnimationsModule on my app.module.ts… and imported properly to Imports.
Whenever I try to use [@trigger]="animationtitle" on html, my app turns into white screen.
Everything works fine on Angular app but not on Ionic…
Why does this happen? is BrowserAnimationsModule not compatible with Ionic?
If so, that’s a huge loss… it can do a whole lot of complicated animations.
Hi @jamesharvey, well you should say if the problem is solved or not. To me, you’re right because Ionic 3 is not yet using Angular 4 and thus, this is not inside the official supported Ionic 3 package.
That being said, if you love trigonometry animations, you can use many classic js projects inside your ionic project for animations, not to mention html5 css3 animations projects like in https://tympanus.net/codrops/.
(full js and css animations).
Well @jamesharvey, i’m not a super js frontend coder but it’s possible yes, a button that triggers many animations like i said. The issue is, like i showed with codrops, these kind of animations if triggered at the same time will eat a lot of cpu and gpu (not a problem on desktop computer), but it will probably lag on any smartphone, because trigonometry and smartphone can be slow if no compression in video…
as for the rest, it’s not a matter of gpu most smartphones have decent gpu now
but the cpu is a concern for that kind of nice dynamically generated videos, i hope you understand ?
And for the rest, yes @jamesharvey some achieve it, you’re totally right, me it’s not my specialty in code, i just see that it seems difficult (i had one 3D card back in the days).
And for now i just hope we see more apps with complex maths or for example simulations of Galileo system (i love space), now we have 10 satellites launched for European Union.
That’s good to know but I’m not into digging space science as of yet. I’m making a media player app.
By the way, angular animation is now working so well.
I fixed a few mistakes and now it’s here…
So my app is currently using CSS 3 keyframes, Angular animations at the same time…
@jamesharvey@SigmundFroyd Yes sorry i put this of european union because i’m very proud (i had family working on eu satellites). Whatever to be serious, some animations in terms of js and css can’t be made with low angular, that was just my point. (i’m kinda expert in front end).
and to conclude, ionic 3 is not excactly matching what is required in some recent jquery libs or others to put trigonometry as css, or HTML5 as serious browser animations.