svelte-shared-transition

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i svelte-shared-transition

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

49.2 kB

Total Files

7

Last publish

Collaborators

  • joshuaamaju