I followed the tutorial here (https://www.youtube.com/watch?v=SSnXMVb4veg) to alter the standard dropdown element into an expandable/collapsible accordion.
When I click to close the accordion, the main element expands to full screen quickly before closing. I’ve followed through the tutorial a number of times, making sure to complete each step correctly, and I still have the problem.
Any help would be appreciated!
Here is my public share link:
Did you find a solution? Trying to figure out the same problem today after following the same tutorial.
You may want to check your close animation on click two and that the height on the answer class (size) is set to zero pixels and not zero REM, hope this helps.
To build on what @unreallogic said,
I have found that the fix for this is to make sure that the close animation has the height the dropdown will end up as in PIXELS and not REM units.
Hope this helps! Solved the issue for me.
Thank you guys! Very helpful! @Finsweet FYI - I LOVE your Chrome extension. One oddity to note though — if you use the Px to Rem converter… it does “mess up” Webflow accordions on close.