Goober
goober
A less than 1KB css-in-js solution
Animation
css-in-js
goober
styled
emotion
styled-components
javascript
react
preact
Animation
npm
Stars
3.3k
Weekly
7.0M
Open issues
72
Bundle
~15 kB
Installation
npm install gooberCode example
import { motion } from "goober";
export function Example() {
return (
<motion.div
initial={{ opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.35 }}
>
<h2>Animated with Goober</h2>
</motion.div>
);
}Pros & cons
Pros
- Actively maintained by Cristian
- 7.0M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 72 open issues on GitHub