Giter VIP home page Giter VIP logo

stripe-gradient's People

Contributors

t3rminus avatar thelevicole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stripe-gradient's Issues

main.js.map no such file or directory

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>

More than 4 colors generate "error X3696: infinite loop detected"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.