Closed herkyl closed 2 months ago
Hi, for SvelteKit I recommend including the CDN version of the loader in a script tag. So in your app.html
, place the following just after your opening <body>
tag (changing to the specific loader you want of course):
<script
type="module"
src="https://cdn.jsdelivr.net/npm/ldrs/dist/auto/helix.js"
></script>
Can confirm it worked:
Add this to the HTML file:
<script type="module" src="https://cdn.jsdelivr.net/npm/ldrs/dist/auto/ripples.js"></script>
Then just add this to a Svelte file:
<l-ripples
size="45"
speed="2"
color="black"
></l-ripples>
I'm getting the error on Sveltekit:
How do I make ldrs work on Svelte?