JSPM

svelte-shared-transition

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q15286F
  • License MIT

Transition elements between routes.

Package Exports

  • svelte-shared-transition

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (svelte-shared-transition) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

svelte-shared-transition

Transition shared elements between routes easily.

Install

yarn add svelte-shared-transition

Usage

import SharedTransition from "svelte-shared-transition";
<SharedTransition key="hero" />

<div data-key="hero"></div>

Transition starts once the components is mounted.

Props

name type default description
key string the key shared by the elements to be transitioned.
easing string ease-in-out
delay number 0.0
duration number 250
clear boolean false clear animation properties when done transitioning.

Methods

  • play
  • pause
  • update

Demo