codrops / animatedcustomcursor Goto Github PK
View Code? Open in Web Editor NEWSome ideas for interactive custom cursor animations using SVG filters.
Home Page: https://tympanus.net/codrops/?p=48725
License: MIT License
Some ideas for interactive custom cursor animations using SVG filters.
Home Page: https://tympanus.net/codrops/?p=48725
License: MIT License
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!
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).
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;
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;
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 ?
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
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.