1.2.9 • Published 2 years ago

ms-react-gradient v1.2.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Install

$ npm install ms-react-gradient

or

$ yarn add ms-react-gradient

Demo link

storybook

Usage

import TextGradient from 'ms-react-gradient/src';

<TextGradient
    text="example text"
    type="linear"
    color1="#121fcf"
    color2="#13cf50"
    startPosition="20"
    endPosition="90"
 />

Props/Options

NameDescriptionDefaulttype
textcontentstring
typespecifies which gradient type the text will be.linear"linear" | "radial" | "elliptical" | "repeat-linear" | "repeat-radial" | "repeat-elliptical"
animationbrings the animation feature of the text."linear" | "ease-in-out" | "ease-in"
color1first colorstring
color2second colorstring
startPositionPercent passage of the first color0string | number
endPositionPercent passage of the second color100string | number
styleCustom style definitionnumber
1.2.8

2 years ago

1.2.7

2 years ago

1.2.9

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.1

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago