1.0.0 • Published 6 years ago
react-ripple-cursor v1.0.0
Ripple
Does exactly what you'd expect from the name, ripples around your cursor.
yarn add react-ripple-cursor
To affect your whole viewport, throw a <Ripple />
anywhere in your React component, otherwise to affect only a smaller area, you can wrap that area in <Ripple><YourComponent /></Ripple>
There are some sensible defaults, but you can also set the colour
(colour of the Ripple, RGB array), size
(size the Ripple extends to, pixels), and scope
(a specific element to bind to).
import React from 'react'
import Ripple from 'react-ripple-cursor'
const YourComponent = () => (<div>
<Ripple />
// or
<Ripple colour={[122, 222, 12]} size={80}>
<SomeOtherComponent />
</Ripple>
</div>)
1.0.0
6 years ago