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 cursor background color dynamically? #35

Open
dropways opened this issue Oct 11, 2023 · 1 comment
Open

How to change cursor background color dynamically? #35

dropways opened this issue Oct 11, 2023 · 1 comment

Comments

@dropways
Copy link

I wan to use colorful cursor not only black and white.

I have a slider color with dynamically slide color so I need to use dynamic cursor background color.

Please suggest me solution.

Thank you in advance

@Drafteed
Copy link
Member

Drafteed commented Oct 12, 2023

Use a custom CSS:

.my-cursor.-red {
    color:#ff0000;
}
<div data-cursor="-red">Red cursor!</div>

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