Investigate removal of framer-motion
#6678
Labels
Debt
Experience dropped or altered for implementation release and deferred until later
dependencies
Pull requests that update a dependency file
role: dev
Milestone
While
framer-motion
has been a very convenient tool in orchestrating animations and transitions, we've faced issues in managing it as a dependency given our requirement for continued support of React 16 and up.After doing a quick review of where and how we're using it, I think we should be able to do everything we're currently doing with
framer-motion
now with native css. For example, creating an animation on render (which we've commonly relied onAnimatePresence
for), can be done all in css now, here is an quick example:See codepen example here.
With the
allow-discrete
transition-property value, properties likedisplay
can also be used in transitions.The text was updated successfully, but these errors were encountered: