The five best design links, every weekday

Domain: trekhleb.dev

trekhleb.dev

Content-aware image resizing in JavaScript

JavaScript implementation of so-called Seam Carving algorithm for the content-aware image resizing and object removal. A dynamic programming approach.

trekhleb.dev

Gyro-web: Accessing the device orientation in JavaScript

Accessing the device orientation using React hook, and rotating a CSS 3D cube afterward.