Everybody can cook
Tuesday, January 7, 2025
demos
everybody-can-cook
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
Inspiration: Everybody can cook from jhey ▲🐻🎈
Staggered text can be hypnotic and it's quite an easy way to bring a bit of joy to your projects.
I used something very similar in Demos. Just try to search for a very specific Demo in the Home.
This demo shows how to create a fun cooking-themed animation using staggered text. Each letter smoothly animates in sequence, creating a wave-like effect that makes the text come alive. The animation is powered by Reanimated and can be easily customized with different timing, delays, and even reverse animations.
The component is highly reusable and can be dropped into any React Native project. You can control the animation programmatically through refs, making it perfect for interactive experiences or micro-interactions throughout your app.
Usage
The main component StaggeredText can be used to create animated text:
import { useRef } from 'react';
import {
StaggeredText,
type StaggeredTextRef,
} from './components/staggered-text';
const MyComponent = () => {
const textRef = useRef<StaggeredTextRef>(null);
return (
<StaggeredText
text="Hello World"
ref={textRef}
fontSize={50}
delay={300}
// Optional: Enable reverse animation
// enableReverse={true}
/>
);
};
Controlling the Animation
The component exposes three methods through its ref:
// Start the animation
textRef.current?.animate();
// Reset to initial state
textRef.current?.reset();
// Toggle animation (requires enableReverse prop)
textRef.current?.toggleAnimate();
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Everybody Can Cook
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback