Search the Community
Showing results for tags 'contribution'.
Hi people, I've been trying to enhance my skills regarding GSAP and SVG animations. Inspired by the beautiful [Toggl's web app](toggl.com) I've tried to reproduce a neat effect available there, but using a slightly different approach. I've grabbed a great little monster SVG from a collection and took the challenge of animating the eye of this monster reactive to the mouse hover event on the parent container. I've had first tracked down all the min and max values to translate X and Y axis in order to roll out all the monster's eye globe and then applied a calculation to transform the 0%-100% from the mouse position on the container to the min/max values to Y and X possible translations. The result was satisfying. This is my first sharing post and any feedback regarding best practices, best performance, or simply a better way to achieving that would be very much appreciated. @Edit: For some reason the pen is not being correctly loaded, so here is the link: https://codepen.io/junglebadger/pen/dLXrew