Skip to content
Interactive

PaperPlanePath

A coral paper plane on a ruled notebook page. It flies the pencil route when it comes into view, banks through the bends and rolls over on a loop. Draw any line and it flies that instead; Next route changes course.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
routesstring[]3 routesSVG path data in a 520 x 320 box.
speednumber200Box units per second.
onLand() => void-Called when the plane lands.
labelstring"Paper plane flying a pencil route"Read out by screen readers.
classNamestring"w-full"Set the width here. Everything scales with it.