Hi, great work! Thanks.
Is it possible to use anime in a Angular 2+ project? Would love to use if there. Any ideas hoe?
Worked out for me:
_package.json_
"animejs": "2.2.0",
_some.component.ts_
import anime from 'animejs';
...
something: any;
...
ngAfterViewInit(): void {
this.something = anime({...});
}
Key aspect is that the code should run _AfterViewInit_ (see StackOverflow)
Please comment if you have any trouble.
@whyboris
Hi, i got a problem after following your step

My dependencies version

OK, You know what? It solved...
Here's the solution:
import * as anime from 'animejs';thanks man
Most helpful comment
@whyboris

Hi, i got a problem after following your step
My dependencies version

OK, You know what? It solved...
Here's the solution:
import * as anime from 'animejs';