1.0.0 • Published 6 years ago

gradienttextlib v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

What is that?

A simple library for creating gradient-filled texts.

How to use ?

npm i gradientTextLib

Then...

import { gradientText } from 'gradientTextLib';

gradientText({
	primaryColor: '#323',
	secondaryColor: '#e2e',
	direction: 'right',
	type: 'radial-gradient'
})

Options

gradientTextLib supports 4 options, each of which is optional.

  • primaryColor - '#color' (Defaults to #fff (white))
  • secondaryColor - '#color' (Defaults to #000 (black))
  • direction - 'top' | 'right' | 'bottom' | 'left' (Defaults to bottom)
  • type - 'radial-gradient' | 'linear-gradient' (Defaults to linear-gradient)
1.0.0

6 years ago