The community member is having difficulties changing a CSS class or ID through the "HTML embed" and is wondering if this is possible and what alternatives they have. The comments suggest using a Radix component, specifically the Collapsible element, to show and hide text and pictures underneath a button. The community members want the button text to change when clicked and the button to be detached from the collapsible content. They also want the button to fade the text in and out, and the button to say "close" and have the arrow pointing the other way when the content is unfolded.
I have already tried to work with the radix and the element Collapsible fits best because I want to show and hide text and pictuers underneath with a button. But I want the text of the button to change when it is clicked and that the button is detached from the collapsible content.
the button fades the text underneath in and out, when the button is unfolded it should say “close” in it and the arrow should be the other way around.
Attachments
Add a reply
Sign up and join the conversation on Discord
","dateCreated":"2025-01-09T15:37:01.088Z","dateModified":"2025-01-09T15:37:01.088Z","author":{"@type":"Person","url":"https://help.webstudio.is/members/3ebd58cc-8474-4ae7-8709-0d78b9962bad","name":"Sudi","identifier":"3ebd58cc-8474-4ae7-8709-0d78b9962bad","image":"https://cdn.discordapp.com/avatars/466605601431224340/834da08e041b7548612c50d75d65db5b.webp?size=256"},"commentCount":0,"comment":[],"position":3,"upvoteCount":0},{"@type":"Comment","text":"I would try a Radix component to see if there is functionality baked in alreadyUse