Intrinsic Ratio Generator
In 2009, Thierry Koblentz wrote about Intrinsic Ratios, specifically in regards to videos. By now they’re used everywhere, or should be, thanks to RWD. I found myself whipping out a calculator once too often, so I made a simple LESS mixin to do the math for me in 2013.
As a learning experiment I took that mixin logic and built a calculator to generate the CSS for an intrinsic ratio using ReactJS. As a result, sorry but this app requires JavaScript to run. I’ve included LESS and SASS mixins above for your leisure.