[animations]="false" does not disable CSS transition
See original GitHub issueDescribe the bug We disabled the animations on a chart (ngx-charts-bar-vertical-stacked) via [animations]=“false”. We expected the chart to “pop in”, however, it still fades in. We found that there are some styles active on the “ngx-charts-outer”-div:
.ngx-charts-outer {
-webkit-animation: chartFadeIn linear .6s;
animation: chartFadeIn linear .6s;
}
Are these styles supposed to be active when “animations” is set to false?
Expected behavior No fading / animating behavior.
Demo https://stackblitz.com/edit/angular-ivy-qjlujv?file=src%2Fapp%2Fapp.component.ts
ngx-charts version 20.1.0
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
What is the cleanest way to disable CSS transition effects ...
Short Answer. Use this CSS: .notransition { -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none ...
Read more >prefers-reduced-motion - CSS: Cascading Style Sheets | MDN
Indicates that user has notified the system that they prefer an interface that removes or replaces the types of motion-based animation that ...
Read more >How Cypress Freezes CSS Animations And You Can Too
Disabling animations from out test # We can use jQuery bundled with Cypress under Cypress. $ to make the code simpler.
Read more >An Interactive Guide to CSS Transitions - Josh W Comeau
Note that ease-in is pretty much exclusively useful for animations that end with the element offscreen or invisible; otherwise, the sudden stop ......
Read more >Controlling CSS Animations and Transitions with JavaScript
The idea in this demo is to enlarge the heart and stop the animation when it is hovered over. HTML; CSS; JS. Result;...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
also when you re-enable a series from legend area
It is very frustrating that disabling animations does not disable the fade-in animation.
EDIT: There is a temporary solution to disable fade animations for all charts. Just place this code in root CSS file of your project.