frame.js is a tiny utility for orchestrating frame-based animations with requestAnimationFrame while keeping code clean and predictable. It abstracts the boilerplate of setting up a render loop, tracking elapsed time, and updating callbacks at the right cadence. By providing a simple lifecycle—start, stop, tick—it encourages separation between state updates and rendering, which is essential for smooth visuals. The library aims to be unobtrusive: you can drop it into demos or prototypes without adopting a large framework. Because it centralizes timing, it becomes easier to coordinate multiple animated elements or throttle work on low-power devices. For creative coding, micro-games, and UI flourishes, it offers just enough structure to keep animation code tidy.

Features

  • Thin wrapper around requestAnimationFrame with start and stop control
  • Consistent tick function that passes delta time for smooth motion
  • Centralized loop management for coordinating multiple animations
  • Encourages clear separation between update and render steps
  • Minimal API designed for demos, prototypes, and micro-games
  • Plays nicely with canvas, WebGL, DOM, and other rendering targets

Project Samples

Project Activity

See All Activity >

Categories

Animation

License

MIT License

Follow frame.js

frame.js Web Site

Other Useful Business Software
Simple, Secure Domain Registration Icon
Simple, Secure Domain Registration

Get your domain at wholesale price. Cloudflare offers simple, secure registration with no markups, plus free DNS, CDN, and SSL integration.

Register or renew your domain and pay only what we pay. No markups, hidden fees, or surprise add-ons. Choose from over 400 TLDs (.com, .ai, .dev). Every domain is integrated with Cloudflare's industry-leading DNS, CDN, and free SSL to make your site faster and more secure. Simple, secure, at-cost domain registration.
Sign up for free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of frame.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Animation Software

Registered

2025-10-24