curtains.js is an open-source lightweight vanilla javascript WebGL library. It turns HTML elements containing images, videos and canvases into textured planes.
Each plane size and position are defined in CSS so you can focus on writing your shaders instead.