liil'boo
liil'boo3y ago

✅ – Liil' Boo – 16-51 Oct 4

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 ?
4 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
liil'boo
liil'boo3y ago
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
reactibot
reactibot3y ago
This question has an answer! Thank you for helping 😄 If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1026899356781129729
reactibot
reactibot3y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1026899356781129729 Question not getting answered? Maybe it's hard to answer, or maybe you asked at a slow time. Check out these resources for help asking a good question: https://stackoverflow.com/help/how-to-ask http://wp.me/p2oIwo-26