Skip to content

Instantly share code, notes, and snippets.

View nicoburns's full-sized avatar

Nico Burns nicoburns

View GitHub Profile
@nicoburns
nicoburns / renderloop.js
Created October 1, 2013 01:37
renderloop: A simple requestAnimationFrame shim and wrapper for easy animating.
// Core module: renderloop v0.2.0dev
define([
"lodash"
], function (_) {
var RenderLoop = {
timer: null,
queue: [],
persistentTasks: [],
options: {
@nicoburns
nicoburns / regiongroup.html
Last active December 24, 2015 08:39
Example of a "RegionGroup" Backbone view, which can be used to easily animate between two views.
<div class='regiongroup'>
<div class='region'>Initial RegionGroup content</div>
<div class='region region-hidden'></div>
</div>