Custom cursor broken when using smoothscrollbar.js #486
-
I am using a custom cursor that changes when hovering over images, this works fine in a normal situation, but when also using 'smoothscrollbar.js' the cursor does not move down with the page when you scroll. You can see how it is supposed to work here, but this is what is happening when using smoothscrollbar.js. Does anyone know how to fix this issue? |
Beta Was this translation helpful? Give feedback.
Answered by
sadeghbarati
Jul 28, 2022
Replies: 1 comment
-
Init <body>
<main data-scrollbar>
...
</main>
<!-- cursor outside of smooth-scrollbar element -->
<div id="custom-cursor"></div>
</body> Check Cuberto which is using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gjwjr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Init
smooth-scrollbar
on another element instead of bodyCheck Cuberto which is using
smooth-scrollbar
and custom cursor