Kit Cross

JavaScript

Dark mode videos with prefers-color-scheme

Dark mode has wide browser support and media queries allow for switching images by user color scheme. The same is also possible with video elements.

Quick 301 redirects with Lambda@Edge and Cloudfront

Attaching Lambda functions to Cloudfront distributions allows for server side scripting on a static site. This enables easy permanent redirects or AB tests.