Skip to content

CoffeAddict/Dynamic-Background

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic-Background

Transition between backgrounds.

It's curious cause a gradient is rendered as image so you cant make a transition to another gradient.

Now it's easy

DEMO

Basic Syntax:

import dynamicBG from 'dynamic-background'

let colorList = [
    {
        color: 'blue'
    },
    {
        color: 'linear-gradient(90deg, #7b4397 0%,#dc2430 100% )'
    },
    {
        color: 'url(https://picsum.photos/200/300)'
    },
]

dynamicBG('elementId', colorList, 5 /* Background Stay Time */)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published