Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
411 views
in Technique[技术] by (71.8m points)

javascript - Animate.css animation fadeInDown stopped working after adding @angular/material

I recently added angular material to my angular project, but soon after adding @angular/material to my project some of the animations provided by animate.js stopped working.

Is there any way that i can keep both animate.js and angular material working together.

Console error:

Module build failed: Error: ENOENT: no such file or directory, open 'node_modules/zone.js/dist/zone-evergreen.js'

but i do have that file at that path.

question from:https://stackoverflow.com/questions/65641770/animate-css-animation-fadeindown-stopped-working-after-adding-angular-material

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I think that'll help: ( in order to disable angular material animations in conflicted areas)

-use NoopAnimationsModule instead BrowserAnimationsModule to disable all animations

-use @HostBinding('@.disabled') private disabled = true; to disable a component animations

-use <mat-checkbox @.disabled></mat-checkbox> to disable a material component (using directive)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...