Learning animations in JavaScript with a marching ant
First steps
First I had to draw the ant. I made a very basic ant using SVG circles and lines. Here is the little fella.
Next, I needed to figure out the logic for making him zig-zag up and down the page. No ant goes in a straight line, after all. So...
mimsydev.hashnode.dev4 min read