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

How to change the cursor color from white to black when entering a specific element #39

Open
vk-develops opened this issue Jan 26, 2024 · 1 comment

Comments

@vk-develops
Copy link

I want to change my cursor color from white to black when entering a specific element because the element i have created has background color of white so while entering it i need to change the cursor to black

Some one please help me solve this issue.

Thank you in advance!!

@vickkie
Copy link

vickkie commented Mar 7, 2024

###Solution

in your mouse follower CSS file add this line:

.mf-cursor.-inverse:before {
background: #fff;
}

then in your html

use :
data-cursor="-inverse"

that should work

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