🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

stripe-gradient

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stripe-gradient

Stripe WebGl Gradient Animation

1.0.1
latest
Version published
Weekly downloads
558
5.48%
Maintainers
1
Weekly downloads
 
Created

Stripe WebGl Gradient Animation

All Credits to Stripe.com

Usage

JS

  const gradient = new Gradient()
  gradient.initGradient('#gradient-canvas')

HTML

  <canvas id="gradient-canvas" data-transition-in />

Styles

#gradient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 14px 14px 0px 0px;
  --gradient-color-1: #b90e50;
  --gradient-color-2: #032e46;
  --gradient-color-3: #151525;
  --gradient-color-4: #0f3b5e;
}

Local Dev

yarn install
yarn dev

FAQs

Package last updated on 26 Dec 2022

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