Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

brandonhimpfen/gradient-css-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

gradient-css-generator

A package that helps generate CSS gradients.

Installation

Install the package using npm:

npm install gradient-css-generator

Usage

const generateGradient = require('gradient-css-generator');
const cssGradient = generateGradient('#ff0000', '#00ff00', 'to right');
console.log(cssGradient);

The generateGradient function takes three parameters:

startColor: The starting color of the gradient in hex format. endColor: The ending color of the gradient in hex format. direction: The direction of the gradient (e.g., 'to top', 'to bottom', 'to left', 'to right'). The default is 'to bottom'.

The function returns a CSS gradient string that you can use in your stylesheets.

About

A package that helps generate CSS gradients.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /