Useful Svelte-component helper to split text inside DOM elements to letters, words or lines.
Install:
npm i sveltering
Usage:
<script>
import Sveltering from "sveltering";
</script>
<Sveltering method="words">
<div>This sentence has been Svelteringed!</div>
</Sveltering>
Methods:
"letters" "words" "lines"
This is my first package made with SvelteKit. Use with caution!