Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thelevicole/stripe-gradient
A reverse engineered, and simplified javascript library to replicate the animated Stripe gradients.
https://github.com/thelevicole/stripe-gradient
animation canvas gradient stripe
Last synced: 8 days ago
JSON representation
A reverse engineered, and simplified javascript library to replicate the animated Stripe gradients.
- Host: GitHub
- URL: https://github.com/thelevicole/stripe-gradient
- Owner: thelevicole
- Created: 2022-02-22T17:34:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-21T15:29:38.000Z (over 1 year ago)
- Last Synced: 2024-11-12T01:35:09.678Z (about 2 months ago)
- Topics: animation, canvas, gradient, stripe
- Language: JavaScript
- Homepage: https://thelevicole.com/stripe-gradient/
- Size: 180 KB
- Stars: 60
- Watchers: 3
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stripe Gradient
A reverse engineered, and simplified javascript library to replicate the animated [Stripe](https://stripe.com/) gradients.
## Basic usage
**HTML**
```html
```
**JavasScript**
```javascript
new Gradient({
canvas: '#my-canvas-id',
colors: ['#a960ee', '#ff333d', '#90e0ff', '#ffcb57']
});
```## jQuery ready
```javascript
$('#my-canvas-id').gradient({
colors: ['#a960ee', '#ff333d', '#90e0ff', '#ffcb57']
});
```