Giter VIP home page Giter VIP logo

animatedcustomcursor's Issues

Issue regarding scrolling + little typo

There is an unnecessary use of scroll data in this code
(at the moment, if you scroll the cursor goes up at some point and disappear).


cursor.js

Before:

this.renderedStyles.ty.previous = this.renderedStyles.ty.previous = mouse.y - this.bounds.height/2 - docYScroll;

After:

this.renderedStyles.ty.previous = this.renderedStyles.ty.current = mouse.y - this.bounds.height/2;

cursor.js

Before:

this.renderedStyles['ty'].current = mouse.y - this.bounds.height/2 - docYScroll;

After:

this.renderedStyles['ty'].current = mouse.y - this.bounds.height/2;

Also a little typo here (previous used twice, should be current):
cursor.js

After:

this.renderedStyles.ty.previous = this.renderedStyles.ty.current = mouse.y - this.bounds.height/2;

Change Circle Size

Love this, its amazing!
Just wondering how to make it smaller? I'm using demo 3. I've been looking through the code but can't see a simple solution. Thanks

Cannot read property 'setAttribute' of null

Hi,

I'm trying to use this, I love it :), but got some really annoying issue, on all 4 demo it's showing me

Uncaught TypeError: Cannot read property 'setAttribute' of null
    at Timeline.onUpdate [as _onUpdate] (cursor.js:144)
    at _callback (gsap-core.js:989)
    at Timeline.render (gsap-core.js:2219)
    at Timeline.render (gsap-core.js:2164)
    at _lazySafeRender (gsap-core.js:256)
    at Array.updateRoot (gsap-core.js:2589)
    at _tick (gsap-core.js:1296)

Can you help me with this :D ?

cursor disappear on longer website

We have a problem that cursor works only on the place of the size of the screen (2880x1440.. just first visible screen on website) but when your website is scrollable and much longer - when you scroll, cursor disappear. This issue is also in your version on Codrops.

Is it a bug or just a bad implementation? :)
Thanks for the solution!

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.