Content pfp
Content
@
0 reply
0 recast
0 reaction

〰️➰〰️➰〰️ pfp
〰️➰〰️➰〰️
@jklb.eth
Getting back into motion land for a bit and trying to get up to speed with all the things! Anybody know if framer-motion will allow me to use CSS variables to define my transition configs (stiffness, damping, etc)? I know I can use CSS vars for animated values, but not having luck using them for my configs…
4 replies
0 recast
7 reactions

pugson pfp
pugson
@pugson
no. /dont-do-this
1 reply
0 recast
1 reaction

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
CSS variables are inheritable/overridable CSS properties, so if this were possible Framer Motion would have to constantly watch the element for changes to each variable’s computed value. Probably overkill for configuring a spring animation which needs to be calculated frame-by-frame in JavaScript.
1 reply
0 recast
1 reaction

Noah pfp
Noah
@novakx
hope you find the right configs soon!
0 reply
0 recast
0 reaction

Karen pfp
Karen
@amays
i feel you, motion land can be tricky
0 reply
0 recast
0 reaction