Socket
Book a DemoInstallSign in
Socket

stripe-gradient

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

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
Source
npmnpm
Version published
Weekly downloads
281
-52.45%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

WebGl

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.