Skip to content

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

@fantaz-st

Description

@fantaz-st

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions