Skip to content

Instantly share code, notes, and snippets.

View lean8086's full-sized avatar

Leandro Linares lean8086

View GitHub Profile
/* Hexagon kitty - By @LeaVerou
Disappointingly inflexible, but still interesting methinks.
*/
.hexagon {
display: inline-block;
position: relative;
width: 200px;
height: 200px;
transform: scale(1.25,.707) rotate(-45deg);
@lean8086
lean8086 / rAF.js
Created August 18, 2012 20:13 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// requestAnimationFrame polyfill by Erik Möller
// Fixes from Paul Irish and Tino Zijdel
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
(function (w) {
"use strict";
var lastTime = 0,
vendors = ["ms", "moz", "webkit", "o"],
len = vendors.length,