Skip to content

Instantly share code, notes, and snippets.

@yoschi
yoschi / Issue with nested anchor tags. Slim v1.3.8
Last active December 17, 2015 05:08
Issue with nested anchor tags. Slim v1.3.8 The div with the class `.problem` is placed beside the anchor tag 2, instead of inside it. If you remove the class `.item` from the anchor tag, then it works... but I guess I need that class
div
div
div
a.item
| 1
a.item
| 2
div.problem
a.item
| 3
@yoschi
yoschi / rAF.js
Created December 31, 2012 11:17 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {