startViewTransition

A utility to quickly enable the view transitions API

Demo

View transitions will not be enabled

Usage

<script lang="ts">
  // Root layout.svelte file
  
  import { startViewTransition } from "svelte-legos";

  startViewTransition();

  // View transitions will now be enabled
</script>