Join the Webstudio community

Updated 2 months ago

the issue with swiper on canvas

At a glance
Hi, I'm having trouble using Swiper on Canvas. My background turns white when I run the script.
Image
Attachment
image.png
J
W
3 comments
  1. see the marketplace for a swiper template.
  2. you need to use <script type="module"> on your custom script. if you check the console, you'll see an error right now that you are redeclaring a const that already exists
try both of those and see if youre have the issue still
also use client only
Thanks for the suggestions. I tried the above steps but it didn't work so I used the Swiper bundle script which is type='module' and it worked.
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord