n3-rd / curseur

Svelte component for creating customizable cursors.
https://curseur.vercel.app
MIT License
8 stars 1 forks source link

Fix: cursor centered #5

Closed Nam-Hai closed 1 year ago

Nam-Hai commented 1 year ago

Cursor is now correctly centered.

Avoid animating left, right, bottom, top, height, width when possible, especialy on mousemove even which trigger very often, those CSS property trigger reflow. Prefere instead transform properties.

https://developer.mozilla.org/en-US/docs/Glossary/Reflow

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
curseur ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2023 9:57am
n3-rd commented 1 year ago

Cursor is now correctly centered.

Avoid animating left, right, bottom, top, height, width when possible, especialy on mousemove even which trigger very often, those CSS property trigger reflow. Prefere instead transform properties.

https://developer.mozilla.org/en-US/docs/Glossary/Reflow

Thanks very much, I guess the PR was closed due to the mixBlendMode property not working well?

Nam-Hai commented 1 year ago

No it's juste I wanted to show you the code but I feel it's better you actually fix it your way. mixBlendMode works well

n3-rd commented 1 year ago

No it's juste I wanted to show you the code but I feel it's better you actually fix it your way. mixBlendMode works well

Oh cool, thanks very much ✨