Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding sticky cursor and magnetic to the same element causes the element to glitch off the page #7

Open
fantaz-st opened this issue Apr 9, 2023 · 1 comment

Comments

@fantaz-st
Copy link

So i have set the code like this:

const Navbar = () => {
return (



BALENCIAGA.


<p className={classes["button-text"]}>Menu


<div className={classes["burger-wrapper"]} id='stick-item' data-cursor-magnetic>







);
};
export default Navbar;

Logo has the magnetic property and is performing as it should, but the burger wrapper isn't. Cursor sticks to the burger element (spans) and if you try hovering over the burger it glitches off the page.

@ehsan-shv
Copy link
Owner

Hi! please provide a demo on codesandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants