[dotLottie Web] 🧚‍♀️ Fairy State Machine Showdown

Ever wanted to run, jump, and dodge with a single animation file? Now you can—with dotLottie state machines in action!

This interactive demo turns a canvas-rendered Lottie animation into a responsive character you can control with just your keyboard. Powered by dotLottie.stateMachineFire(), every key triggers a unique state:

🎮 Controls:

  • A – Run Left

  • D – Run Right

  • Space – Jump

  • Shift – Dodge

✨ Highlights:

  • Fully keyboard-controlled character animation

  • State machine logic built right into the .lottie file

  • Smooth canvas rendering and directional scaling

  • Dynamic reflection changes when dodging for that extra sparkle

This one’s for devs and motion nerds who want to explore advanced animation logic without heavy game engines. State machines = smoother, smarter interactions in web experiences.