Hi there,
I am trying to create an animated effect in which a ball/circle follows the outline of an “X” letter.
This is what I have as a starting point, but I can’t work out how to add and animate the ball. I would like the ball to animate when the user hovers on the “X”.
I basically want to have 5 key point boxes around the “X” (with one in the middle) and then then the user hovers over the entire section, the ball animates.
I guess it can animate inside of the X, similar to the above fiddle with the “M”, or animate it in a direction like this:
If the animation is moved to the CSS you can use the same path as the SVG and that allows you to pause the animation and it will restart from where it left off.
e.g.
It’s basically the same code except the keyframes do the animation and not the svg code.
I need to learn how to set up paths from an SVG. How do you work out the coordinates? For example a square; how would you find what coordinates the 4 corners are?
I need to learn how to set up paths from an SVG. How do you work out the coordinates? For example a square; how would you find what coordinates the 4 corners are?