swirl

A custom Svelte transition utility.

Demo

0ms
300ms

Usage

<script>
import { swirl } from "svelte-legos";

</script>

<div transition:swirl />

<!-- or with options -->

<div transition:swirl={{
  delay // number
  duration // number
  easing // svelte/easing
}} />