Getting Started
Motivation
If you're using styled-components/Emotion you probably wonder how to make your components more interactive and scalable? How to handle multiple variants and transitions? The Mentioned libraries care only about how to attach css to React components and that's all. The only intuitive way of making transitions is :hover, :active selector. You can write complex logic to handle some touch events/keyframes and/or utilize animation libraries like React Motion. But then you end up with your style fragmented between those libraries...
And that's where Styled Benefits comes in. With its intuitive API. You can handle complex transitions right in your styled css tag, keeping the performance of css transitions and keyframes, using css-like declarative way to handle variants, and just be happy and productive again ๐
Try It!
The documentation is full of the live code examples. Change some lines in the code below:
Installation
- NPM
- Yarn
npm i --save styled-benefits