Skip to content

DevPika/r3f-curve-anim

Repository files navigation

R3F Curve Animation

Features

  • Nodes with configurable position, scale, rotation and color
  • Left click on a node to select it and show Gizmos around it
  • Right click on a node to cycle through Gizmo modes (translation, rotation and scale)
  • Animated 3D object follows a smooth curve
  • Mesh transform and color are interpolated throughout the curve
  • Orbit Controls to looks around the scene
  • Buttons to add and remove nodes, play animation and Color Pickers to change node colors

Tech stack

Building

$ git clone git@github.com:DevPika/r3f-curve-anim.git
$ cd r3f-curve-anim
$ npm install
$ npm run dev

Visit http://localhost:5173/ after dev server boots up.

Based on