Giter Site home page Giter Site logo

christmas-snow-3d's People

Contributors

fnpen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

noobpwnftw

christmas-snow-3d's Issues

Geometry property of the Ss.particles object is undefined, which is causing an error when trying to access the opacity attribute

Uncaught TypeError: Cannot read properties of undefined (reading 'geometry')
    at Object.update (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:15077:44)
    at f (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:14755:47)
    at m (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:14786:28)
    at l.tick (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:14830:17)
    at e (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:14617:31)
    
snow3d.js:
     Ts = t=>{
            ms({
                targets: bs,
                opacity: Number(t),
                duration: 2700,
                easing: "easeOutQuint",
                update: ()=>{
                    const t = Ss.particles.geometry.attributes.opacity
                      , e = t.count / 2;
                    for (let n = 0; n < e; n++)
                        t.setX(n, bs.opacity);
                    Ss.particles.geometry.attributes.opacity.needsUpdate = !0
                }
            })
        }
        
    This is the line where error occurs: `const t = Ss.particles.geometry.attributes.opacity`

Does it need to follow my cursor?

In my opinion, it would look better and more people would choose the plugin if the snowflakes didn't follow the cursor. It has a slightly nauseating effect. Not a bad job anyway, thank you very much.

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.