A library of ready-made animations for Remotion.
Remotion documentation:
https://gist.github.com/ThariqS/3d446e7c7aa9eb94f468194deb73028f
An animated YouTube-style subscribe button with:
- Mouse cursor animation moving from bottom to button
- Cursor changes from arrow to hand pointer on hover
- Button click effect with star particles flying outward
- Button color changes from red to gray after click
- Bell icon shakes after the click
- Transparent background for easy overlays
npm installStart the Remotion Studio to preview animations in real-time:
npm startThis will open a browser window at http://localhost:3000 where you can preview and interact with the animations.
npm run renderOutput: out/subscribe-button.webm
npm run render:mp4Output: out/subscribe-button.mp4
npm run render:gifOutput: out/subscribe-button.gif
You can also render with custom options using the Remotion CLI directly:
# Render specific frames
npx remotion render src/index.ts SubscribeButton out/output.webm --frames=0-60
# Render at different quality
npx remotion render src/index.ts SubscribeButton out/output.webm --crf=18
# See all options
npx remotion render --helpremotion-animations/
├── src/
│ ├── index.ts # Remotion entry point
│ ├── Root.tsx # Compositions registry
│ └── animations/ # Animation components
│ └── subscribe-button/
│ └── SubscribeButtonAnimation.tsx
├── public/ # Static assets
├── out/ # Rendered output
├── remotion.config.ts # Remotion configuration
├── package.json
└── tsconfig.json
- Create a new folder in
src/animations/for your animation - Create your animation component using Remotion hooks:
useCurrentFrame()- get current frame numberuseVideoConfig()- get fps, width, height, durationinterpolate()- animate values over timespring()- physics-based animations
- Register the composition in
src/Root.tsx - Add render scripts to
package.jsonif needed
This project includes Claude Code skills to help create animations:
text-animation-copier: Copy text animations from video examplesvideo-viewing: Download and analyze videos for animation reference
See claude-skills/README.md for detailed documentation on using these skills with Claude Code.
# Type check
npm run typecheck
# Upgrade Remotion
npm run upgradeMIT