In this snippet, we introduce the box-decoration-break property and take a look at the granular control it gives us on inline elements, like creating multi-line padded text.
Displaying all posts filed under “snippets”.
In this snippet, we're going to look at the lesser known vector effect SVG attribute that helps us scale SVGs without scaling their strokes.
This simple snippet demonstrates how to log the value of a generic text input field when the enter key is pressed - in vanilla JS and jQuery.
An introduction to the very useful CSS calc function, and some snippets to show off its use.
You probably know about the beautiful and incredibly helpful box-sizing: border-box reset. This snippet serves up a slight optimisation to it.
This snippet gives us a cross browser solution to calculating the x and y position of a user’s mouse relative to the document.
This snippet looks at the @debug directive in Sass, and demonstrates how we can debug Sass code and log output to the console.
This snippet uses Modernizr to detect transition and animation events with cross-browser compatibility.
Save yourself a few grey hairs with this force favicon refresh snippet, and make all the browsers be at peace with your favicons.