I want to add swiper slider to svelte, my question is:
- Its possible to add css in script tag, like this:
<script> import from "styles.css" ... </script>
Because import to head is tricky (Import css in node_modules to svelte)
- I add
swiper.jsfile to svelte, and it almost works. It works on touch (mouse), but buttons don't (.swiper-button-next.swiper-button-prev). Do exist special import .js files rules ?
Code example: https://codesandbox.io/s/musing-leavitt-ygstx?file=/App.svelte:224-243