RT jhey 🔨🐻✨
Lil CSS Tip for this one 🤏
You could use :has() to detect when a galaxy is being :hovered and set the custom cursor coordinates 🤔
:root:has(.galaxy:hover) .cursor {
--x: var(--gravity-x);
--y: var(--gravity-y);
}
@CodePen link below! 👇
<div class="rsshub-quote">
GreenSock: Oooh. This forum question is a fun little coding challenge 👀
https://greensock.com/forums/topic/35585-how-can-i-achieve-this-effect-in-codepen-effect-canvas-with-dom-elements-please-help-im-very-confused-about-the-working-of-the-code/
</div> https://twitter.com/jh3yy/status/1621240679874678784