Log in
Log into community
Join the Webstudio community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Active
Updated 4 weeks ago
0
Follow
Accordion in Vanilla Js with Css transit...
Accordion in Vanilla Js with Css transit...
Active
0
Follow
m
mihx
4 months ago
Β·
Hey guys! could someone help me to integrate this codepen project into my webstudio project? I have no idea what am I doing wrong...
https://codepen.io/cant89/pen/RLEoyV
(webstudio project
https://p-47e1aebc-618f-4cb9-92f7-259903944e9e.apps.webstudio.is/?authToken=61bb68b8-8a0c-48c5-8913-2325c744d93f&mode=preview
)
J
m
5 comments
Share
Open in Discord
J
John Siciliano
4 months ago
enable client only and use script type="module". that's the low hanging fruit. may be more wrong than that
J
John Siciliano
4 months ago
https://docs.webstudio.is/university/core-components/html-embed#run-script-on-canvas
J
John Siciliano
4 months ago
you're calling this
new gianniAccordion
but i dont see you loading that library anywhere
J
John Siciliano
4 months ago
also put your custom css in the navigator not in the head code in project settings. that doesnt run on the canvas (we are adding a message to make that more clear)
m
mihx
4 months ago
Thanks John!!! You are the best π
Add a reply
Sign up and join the conversation on Discord
Join on Discord