Answer the question
In order to leave comments, you need to log in
How to set svg cursor color?
.wrapper {
cursor: url(/icons/krestik.svg), default;
}
Answer the question
In order to leave comments, you need to log in
Download cursor via ajax.
We change the color in the cursor, which is represented by text data.
We encode in base64.
Pin a new style tag to the page
.wrapper {
cursor: url('data:image/svg+xml;....'), default;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question