Suggestion for CSS animation performance for opening and closing the sidecart
-
Hello there,
For showing and hiding the sidecart.
I think it would be better if you could use transform: “translateX(400px);” and “translateX(0px);” for showing and hiding the cart. With a transition of course.
Instead of using the transition on the CSS “right” property.
This is more performant and generally best practive, and people have been doing that since like 10 years now:
https://www.paulirish.com/2012/why-moving-elements-with-translate-is-better-than-posabs-topleft/
- The topic ‘Suggestion for CSS animation performance for opening and closing the sidecart’ is closed to new replies.