Skip to content

Instantly share code, notes, and snippets.

@kewah
kewah / lethargy.js
Last active August 29, 2015 14:26
Module that kills inertia on scroll and returns direction
// From https://github.com/d4nyll/lethargy and lightly modified
module.exports = function(stability, sensitivity, tolerance) {
return new Lethargy(stability, sensitivity, tolerance);
};
function Lethargy(stability, sensitivity, tolerance) {
// Defaults
@kewah
kewah / _media-queries.scss
Created June 26, 2012 15:07 — forked from anthonyshort/_media-queries.scss
Media Queries in Sass
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break