GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

07Moiré grating interference

Two sets of striped gratings are overlaid at different angles and phases, and per-pixel brightness read via getImageData is multiplied to produce moiré fringes. putImageData writes each frame after nudging the phase by a Math.sin term so the fringes ripple like moving water.

Best forTextured background animation, holographic card surface effects

createImageDataputImageDataMath.sin
Moiré grating interference
Open in a new tab

07 Moiré grating interference — Measured area 60.433% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Wave Interference Simulation: 9 Canvas Scenes

The post this demo lives in

Wave Interference Simulation: 9 Canvas Scenes - preview of all 9 demosWave Interference Simulation: 9 Canvas ScenesA wave interference simulation shows what happens on screen when two or more waves combine, and this set builds nine of See all demos in this post

If you like this effect - similar demos