Remove inline translateZ etc on transition end
See original GitHub issueWhen the transition ends, how can I remove the inline style completely (not set it to 0
)? Even translateZ(0)
causes side effect I really don’t want (like position fixed not working on children)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:10
- Comments:7
Top Results From Across the Web
transform - CSS-Tricks
The transform property allows you to visually manipulate an element by skewing, rotating, translating, or scaling:
Read more >Triggering a CSS transition by removing a class with Javascript
I'm having trouble figuring out why my CSS transition isn't firing when I programmatically remove a class from an element. Essentially, I am ......
Read more >HTML DOM Style transform Property - W3Schools
The transform property applies a 2D or 3D transformation to an element. This property allows you to rotate, scale, move, skew, etc., elements....
Read more >Docs | Utilities | SplitText - GreenSock
SplitText makes it easy to break apart the text in an HTML element so that each character, word, and/or line is in its...
Read more >Velocity.js
It's incredibly fast, and it features color animation, transforms, loops, easings, SVG support, and scrolling. It is the best of jQuery and CSS...
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 FreeTop 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
Top GitHub Comments
I think documentation around this is necessary, I was having issue with
position: fixed
not working properly because a parent had a danglingtransform: translateX(0px)
when it should’ve beentransform: none
@mattgperry
I’ve temporarily worked around this by removing the style attribute on animation complete:
(You should probably use a ref to the element instead of a querySelector, which was needed in my case)