Socket
Socket
Sign inDemoInstall

stripe-gradient

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stripe-gradient

Stripe WebGl Gradient Animation


Version published
Weekly downloads
64
decreased by-47.11%
Maintainers
1
Install size
83.5 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 26 Dec 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc