paper-motion

Tile swirl

tile-swirl

A breaks into tiles that lift and swirl in a wave, flipping over in flight to land as B.

Install
$ npx paper-motion add tile-swirl

Copies the code to moves/ in your project, yours to edit.

Tune it, then add it to your kit
0.0s
Parameters
cols
rows
lift
perspective
import { tileSwirl } from './moves/tile-swirl.js';

// in s.update(t)
tileSwirl(a, b, p);
Defaults

Notes

  • A breaks into tiles that lift and swirl outward in a diagonal wave, flipping over in flight, and land as B.
  • Stack A and B in one positioned slot (their parent); give the slot overflow:hidden to keep travel inside it.
  • Pass the real duration in seconds and call it through p = 1: that is when it hides the layers it made.
  • Render with --motion-blur 5.
  • Draws live copies of the card: a Paper shader canvas inside comes out blank.

Spec

Id
tile-swirl
Type
Component transitions
Version
1.0.0
Engine
>=0.2.0
License
MIT

Related