Wired Logic can turn a still image like this…
…into an animation like that…
go run wired-logic.go input.gif output.gif
It scans the image, converts it into a collection of wires, power sources and transistors and runs a simulation on them as long as the state of the simulation does not recur. Then it renders the simulation into the animated gif image.