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
","upvoteCount":0,"dateCreated":"2025-01-09T15:37:01.088Z","datePublished":"2025-01-09T15:37:01.088Z","dateModified":"2025-01-09T15:37:01.088Z","url":"https://help.webstudio.is/changing-css-trough-html-embed-XCYsq7WWX1VF#b569fa15-b464-41d5-a80e-ba0ba23c115a","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"}},{"@type":"Answer","text":"I would try a Radix component to see if there is functionality baked in alreadyUse