New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dynamic-background

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamic-background

Change background from elements dynamically, even with images or gradients

latest
Source
npmnpm
Version
0.1.9
Version published
Maintainers
1
Created
Source

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 */)

FAQs

Package last updated on 12 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts