A lightweight toolset for writing styles in JavaScript
A lightweight toolset for writing styles in JavaScript.
The Vanilla JS Toolkit
A growing collection of vanilla JavaScript code snippets, helper functions, polyfills, plugins, and learning resources.
Delighters
1. Include the script 2. Add data-delighter attributes 3. Write your own CSS delighters 1. Include the script <script type="text/javascript" src="delighters.js"> 2. Add delighter attributes <div…
Keeping aspect-ratio with HTML and no padding tricks
For a long time we’ve been told the only way to have a DOM element keep a fixed aspect ratio without Javascript is with the % padding…