1.0.19 • Published 3 years ago
react-rainbowfy v1.0.19
RAINBOWFY
A React component that plays a rainbow animation for any text that you enter.
How To Use:
import Rainbowfy from 'react-rainbowfy';
const MyApp = () => {
<ContainerComponent>
<div>Some usual stupid stuff,
follow by a super awesome animation !</div>
<Rainbowfy>Show me the power of NPM.</Rainbowfy>
</ContainerComponent>
}You may also use the following options:
- fontWeight: The font-weight css property. Specify any font you like as long as it is valid css. (Value is a string)
- fontSize: The size of the font. Please specify unit: px, em, rem, vw, vh...(Value is a string)
- font: choose any font you like. Specify a font as such: 'sans-serif'. (value must be a string)
All those options should be passed as props. If none are specified, you will get a default of:
- 400 fontWeight
- 1rem fontSize
- sans-serif font
How To Build From Source:
For Development:
npm run no-defaultsFor Production:
npm run buildYou may also just use the react component by copying Rainbowfy.jsx into your project and importing it from the directory you put it in.
Get it on NPM:
1.0.19
3 years ago
1.0.18
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
6 years ago
1.0.11
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
7 years ago
1.0.0
7 years ago