Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Latest commit

 

History

History
 
 

reverse-gradient

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Reverse Gradient

Reverse a gradient by passing in a linear-gradient() function. This function makes it easy to quickly reverse gradients you have set up in variables.

reverse-gradient($gradient);

Parameters

$gradient [String]

Takes a linear-gradient() as its value.

Usage

$gradient: linear-gradient(to top right, blue, red, green 100%);

.example {
    background: reverse-gradient($gradient);
}

Output

.example {
    background: linear-gradient(to bottom left, blue, red, green 100%);
}