Skip to content

Custom cursor broken when using smoothscrollbar.js #486

Answered by sadeghbarati
gjwjr asked this question in Q&A
Discussion options

You must be logged in to vote

Init smooth-scrollbar on another element instead of body

<body>
    <main data-scrollbar>
    ...
    </main>

    <!-- cursor outside of smooth-scrollbar element -->
    <div id="custom-cursor"></div>
</body>

Check Cuberto which is using smooth-scrollbar and custom cursor

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gjwjr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants