kitze/react-genie
关于
一组 React 组件,可在元素滚动进入视口时为其添加动画效果。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文react-genie
A set of React components for animating elements as they scroll into the viewport
Made by Kitze
kitze.io · X · YouTube
More projects by Kitze
|
pwn.watch Live security incidents: CVEs, patch status, fixed versions and advisories. |
flavors.design Copy-pasteable design flavors. Pick a vibe, hand the markdown to your agent. |
gifs.so Search, copy, and download reaction GIFs. |
|
Shipper Changelog, roadmap, feature requests and tasks for every product you ship. |
Kanso One keyboard-first app for your todos, habits, routines, planner and saved stuff. |
HealthMaxx One health log for everything you track: by hand, from wearables, or through your AI. |
|
Zero To Shipped A full-stack starter kit for web and mobile apps. |
Sotto Voice-to-text for macOS. Local AI, one-time purchase. |
Tinkerer Club A private community for builders, self-hosters, and AI tinkerers. |
|
Sizzy The browser for web developers. |
Supermac A macOS command center for everyday workflows. |
DMX A focused desktop client for X. |
Support this project
Sponsors
|
Matte 3D mockups and screen recordings with pro-level video editing |
Postiz Agentic social scheduler for GIFs! |
ScreenshotOne The best screenshot API for developers and agents |
|
ether.fi a neobank with a built in ai-connector, build your own frontend to your finance with claude, chatgpt or your LLM of choice! Feedback always welcome! |
OpenProse Reliable, event-driven multiagent workflows — in Markdown. |
OpenTweet Agentic X (Twitter) autopilot. |
|
AppSumo 1M+ entrepreneurs use AppSumo to find the best deals on software for their business. One-time payments, lifetime access. |
Team Spartan by CONFLICT Know what matters. Get it fixed. Experience spans high-traffic consumer platforms, cloud infrastructure, and security — built under real operational pressure. |
Strix Hack yourself before the bad guys do. Open source (70k+ stars on Github) |
|
Maple VC We're 3 operators (digitalocean, uber, shopify) turned investors who write first checks into folks with ambition to build global businesses. |
The Influencer AI AI influencer generator: create a realistic influencer from traits or your photos, then make photos, talking videos and UGC ads with the same face every time. |
Pluginboard Find the right plugins for your AI agents. Plugins, skills and step-by-step recipes for Claude, ChatGPT, Grokbot, Muse, Gemini and more. |
|
file.cafe Free, instant file sharing. |
LinkDR Link building that works: real backlinks from hundreds of high-DR sites, done for you or self-serve. |
Synteq The cloud, built for developers. |
|
Kraken.io We optimize your images, to save you bandwidth, make your websites faster, make your customers less frustrated, and reduce your CDN costs. |
Your product here Reach developers in every kitze repo. |
🧞♂️ react-genie
🙋♂️ Made by @thekitze
Other projects:
- 💻 Sizzy - A browser for designers and developers, focused on responsive design
- 🏫 React Academy - Interactive React and GraphQL workshops
- 🔮 Glink - Changelogs, Roadmap, User Requests
- 🐶 Benji - Ultimate wellness and productivity platform
- 🤖 JSUI - A powerful UI toolkit for managing JavaScript apps
- 📹 YouTube Vlog - Follow my journey
Used on sizzy.co

CodeSandbox
https://codesandbox.io/s/react-genie-example-8xfsc
Demo
Dependencies
- styled-components
- layout-styled-components
- react-animations
- react-intersection-observer
Usage
yarn add react-genie
Just render the RevealGlobalStyles component anywhere, so it will add the class names for the animations:
import {RevealGlobalStyles} from 'react-genie'
const App = () => {
return (
<div>
<RevealGlobalStyles />
<div> rest of the app </div>
</div>
);
};
Default animation:
import {Reveal} from 'react-genie';
<Reveal>
<h1>The default animation is fade in</h1>
</Reveal>
Props:
{
animation?: string; // animation class name
delay?: number; // animation delay
mode?: RevealMode; // "clone" or "wrap"
debugName?: string; // if you specify it, you will get console logs
style?: CSSObject; // extra styles
onShowDone?: () => void; // callback after show
}
Specifying animation using the animation prop:
import {Reveal, Animation} from 'react-genie';
<Reveal animation={Animation.SlideInLeft}>
<h1>This title will slide in from the left</h1>
</Reveal>
Hint: you can also pass your own class name here if you have custom animations.
Wrap vs Clone
The default mode is wrap, so the children element will be wrapped in an additional div.
If you don't want that additional div, you can use clone or RevealMode.Clone.
import {Reveal, RevealMode} from 'react-genie';
<Reveal mode={RevealMode.Clone}>
<h1>This h1 will be cloned instead of wrapped</h1>
</Reveal>
In order for clone to work your element needs to accept className, style, and ref, as props. So, if you're trying to clone custom components, make sure they support these props.
The AnimatedTitle component
import {Reveal, AnimatedTitle} from 'react-genie';
<AnimatedTitle>
This sentence will animate in word by word
</AnimatedTitle>
The AnimatedTitle component will split the children prop word by word (so it should be a string), and animate each word with a delay in between.
More projects by Kitze
Apps & tools
|
Perkz Sell and manage access to private GitHub repositories. |
JustWrite Distraction-free writing sprints for macOS, with time or word-count goals. |
Releaseflow App updates and downloads. |
|
Passlock A macOS password manager with time locks and unlock challenges. |
Open source
|
Skillbox A self-hosted, versioned skills library for AI agents. |
Unclutter Remove page clutter with AI-powered, reusable browser rules. |
PageGrade Grade page clarity, writing, and on-page SEO. |
|
Council Let your coding agents deliberate together before making a plan. |
CodexMaxx Manage Codex accounts, usage, and active sessions on macOS. |
React Hanger A collection of useful React hooks. |
|
React Genie Animate React elements as they enter the viewport. |
MobX Router A simple router for MobX and React apps. |
All projects · GitHub · Follow on X · YouTube
探索相关项目
加载中…
