scaleXY

Like svelte's scale transition, but takes individual x and y params.

Example

svelte
<script>
  import { scaleXY } from '@eirikk/sveltekit-stuff';
</script>

<div
  transition:scaleXY
/>

Options

typescript
interface ScaleXYParams {
  delay?: number;
  duration?: number;
  easing?: EasingFunction;
  opacity?: number;
  rotation?: number;
  x?: number;
  y?: number;
}

Demo

😯
NPM version