DEV Community

Sai Ritesh
Sai Ritesh

Posted on

AnimateAI: Turn Text Prompts into 2D Animations with AI (p5.js + Gemini)

🎨 AnimateAI β€” AI-Powered 2D Animation Generator

Have you ever wanted to turn your imagination into an animation by just typing it out? That’s exactly what I built with AnimateAI.

It's a full-stack web app that:

  • Converts text prompts into working p5.js animations using the Gemini API
  • Lets you chat with the AI to refine the animation
  • Allows you to download the animation as a video
  • Saves your creations in your own library

πŸ› οΈ Tech Stack

  • Frontend: React + TailwindCSS + p5.js in sandboxed iframes
  • Backend: Node.js + Express + MongoDB
  • AI: Gemini API (prompt-to-code and code-refinement)
  • Auth: Clerk.dev
  • Payments: Razorpay (test mode for now)
  • Export: MediaRecorder API β†’ .webm video

πŸ’‘ Examples

  • "Show a bouncing ball that changes color every time it hits a wall"
  • "Fireflies glowing randomly over a night forest"
  • "Rain falling over a glass surface with light reflections"

πŸ”— Try It Out

πŸ‘‰ Live Link

πŸ™‹β€β™‚οΈ Looking For

  • Feedback on the UI/UX and animation accuracy
  • Cool prompt ideas to test the limits
  • Suggestions on monetization models
  • Developers who want to collaborate or fork this

Would love your thoughts!

– Ritesh

Top comments (2)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.