I’m working on this Pacman Playground and I don’t know how to make Pacman to close and open the mouth while eating the dots like in this example. I also don’t know how to make him rotate to the corners too.
A friend of mine made the design for me and exported the SVG so I can code it.
I’m new to CSS3 and SVG Animations, so I could use some help from you
Also I’m using a JS Library to manipulate SVG’s.
I know it’s a little hardcoded all the stuff right there but any suggestions would be greatly appreciated
Note the rotateZ that is what rotates the pacman. With with above code we are turning on the second and third turn. For the first turn this .velocity({ rotateZ: "90" }, 10, "linear") should work but it’s not working - it is illogical for the other two to work and the first not to - I have no idea what is going on there. But you are closer with the above code
Opening and closing the mouth
At the moment your pacman scg is an entire image. The way I would do it is great two half circles, group them together, them with something like