Folding the DOM

from blog Josh Comeau's blog, | ↗ original
↗ original
In this post, we'll explore a technique we can use to "fold" a DOM node, like folding a letter in real-life. On that journey, we'll learn a lot about 3D transforms and CSS animation techniques!