Now In Code
Get access
All tags

Chromatic aberration shaders for React Native and Web

Every piece here separates colour channels where light bends. A glass lens slides over a card wall and ripples it, a carousel bends cards through a refractive lens with a split at its rim, a rainbow scan band passes over a receipt before it dissolves, and a prompt button gives its glowing text thin red and blue fringes. Each effect is an SkSL runtime shader on a Skia canvas, and Reanimated shared values drive the clock in several of them. The browser previews run the same shader source through CanvasKit or GLSL, so the channel split looks alike on both.