SVG file with built-in CSS animation. This is a so-so solution.
Warning: Firefox doesn't support animated SVG as the "img" (HTML tag) and as the "background-image" (CSS rule).
FPS:
<img src="img/lamp.svg">