A Pen by Chris Roberts on CodePen.
Animated isotope like boxes using floats and css3 transition.
.flex { | |
display: flex | |
} | |
.flex--centered { | |
justify-content: center; | |
} | |
.flex--aligned { | |
align-items: center; |
#!/bin/sh | |
# | |
#################################### | |
# Pomodoro | |
#################################### | |
showHelp () { | |
echo "-------------------------------"; | |
echo "Pomodoro Command Line Interface"; | |
echo "-------------------------------"; |
/*! Prefix flex for IE10 and Safari / iOS in LESS | |
* https://gist.github.com/codler/2148ba4ff096a19f08ea | |
* Copyright (c) 2014 Han Lin Yap http://yap.nu; MIT license */ | |
.display(@value) when (@value = flex) { | |
display: -ms-flexbox; // IE10 | |
display: -webkit-flex; // Safari / iOS | |
} | |
.display(@value) when (@value = inline-flex) { |
/** | |
* Track JS error details in Universal Analytics | |
*/ | |
function trackJavaScriptError(e) { | |
var errMsg = e.message; | |
var errSrc = e.filename + ': ' + e.lineno; | |
ga('send', 'event', 'JavaScript Error', errMsg, errSrc, { 'nonInteraction': 1 }); | |
} | |
A Pen by Chris Roberts on CodePen.
Animated isotope like boxes using floats and css3 transition.
The reflow appens as many times as there are frames per seconds. It recalculate all positions that change in order to diplay them. Basically, when you scroll you execute a function where you move things between two reflows. But there are functions that triggers reflows such as jQuery offset, scroll... So there are two things to take care about when you dynamically change objects in javascript to avoid too many reflows:
(function( $, prototype ) { | |
$.extend( prototype.options, { | |
spinner: "<em>Loading…</em>" | |
}); | |
var _create = prototype._create; | |
prototype._create = function() { | |
_create.call( this ); | |
var self = this; |