1.2.9 • Published 1 year ago

ms-react-gradient v1.2.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.2.7

1 year ago

1.2.9

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.1

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago