thelevicole / stripe-gradient Goto Github PK
View Code? Open in Web Editor NEWA reverse engineered, and simplified javascript library to replicate the animated Stripe gradients.
Home Page: https://thelevicole.com/stripe-gradient/
A reverse engineered, and simplified javascript library to replicate the animated Stripe gradients.
Home Page: https://thelevicole.com/stripe-gradient/
Hi,
I really appreciate what you did and I would like to repay your effort.
Do you have a link where I can make a donation?
Not related to the above, I also have an error that appeared recently:
if I use more than 4 colors, in Chrome and Edge, with the graphic accelerator active (default), after a recent browser update (now at most 3 months it works correctly), this error appears in Chrome console and the animated background is not visible on the background of the div:
stripe-gradient.js:1 error X3504: literal loop terminated early due to out of bounds array access
C:\fakepath(372,26-35): error X3696: infinite loop detected - loop never exits
error X3504: literal loop terminated early due to out of bounds array access
C:\fakepath(372,26-35): error X3696: infinite loop detected - loop never exits
Warning: D3D shader compilation failed with default flags. (vs_5_0)
Retrying with skip validation
error X3504: literal loop terminated early due to out of bounds array access
C:\fakepath(372,26-35): error X3696: infinite loop detected - loop never exits
Warning: D3D shader compilation failed with skip validation flags. (vs_5_0)
Retrying with skip optimization
error X3504: literal loop terminated early due to out of bounds array access
C:\fakepath(372,26-35): error X3696: infinite loop detected - loop never exits
Warning: D3D shader compilation failed with skip optimization flags. (vs_5_0)
Failed to create D3D Shaders
If I disable the graphic accelerator from the browser options, the error disappears.
I think it's an error in Chromium, but maybe you can investigate and manage to bypass it.
Thank you!
Bogdan
https://www.jetbrains.com.cn/youtrack/promo/
This interface is also dynamic, three-dimensional, wavy, gradients
On resizing the window, getting error "this.getOption is not a function"
Line:
key: "resize",
value: function() {
var e = j(this.getOption("density"), 2)
, t = e[0]
, n = e[1];
Hello there!! I am using this library in react.js and I am getting this warning
WARNING in ./node_modules/stripe-gradient/dist/main.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/home/user/rym-frontend/node_modules/stripe-gradient/dist/main.js.map' file: Error: ENOENT: no such file or directory, open '/home/user/rym-frontend/node_modules/stripe-gradient/dist/main.js.map'
webpack compiled with 1 warning
I have implemented gradient like this in react.js
import { Gradient } from "stripe-gradient";
useEffect(() => {
const gradient = new Gradient();
gradient.initGradient("#background");
}, []);
here is my canvas
canvas data-transition-in id="background" style={{
zIndex: 0,
width: "100%",
height: pxToRem(702), position: "absolute", minHeight: pxToRem(830),
paddingTop: pxToRem(30),
paddingBottom: pxToRem(40),
borderRadius: pxToRem(40),
}}></canvas>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.