R
Reactiflux

✅ – Liil' Boo – 16-51 Oct 4

✅ – Liil' Boo – 16-51 Oct 4

LBLiil' Boo10/4/2022
Hey, Context & Tech : Working with CSS animations Challenge : retrieve an element's css property values , here : animation . Found so far : https://developer.mozilla.org/fr/docs/Web/API/Window/getComputedStyle Is there another way to access an element's css properties in using Javascript ? Also is window.getComputedStyle() "expensive" memory/speed wise ?
UUUnknown User10/4/2022
Message Not Public
Sign In & Join Server To View
LBLiil' Boo10/5/2022
Thanks, I had thought of a workaround (with lesser DX/Developer Experience); it was manually giving a data-attribute that corresponds a value, which necessitate to remember the values and do the check with element.getAttribute But element.style.<property> is outright easier meaning getComputedStyle is deprecated ? Looks overkill anyway thank you
UUUnknown User10/5/2022
3 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

✅ – Liil' Boo – 16-51 Oct 4

Join Server