Skip to content

Instantly share code, notes, and snippets.

View dleroux's full-sized avatar

Daniel Leroux dleroux

View GitHub Profile
@dleroux
dleroux / bling.js
Created June 7, 2016 14:16 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;

Showing how to Debug CSS Animation Play States in JavaScript

Small demo to show how to log what point you're at in a CSS animation in order to debug motion.

A Pen by Sarah Drasner on CodePen.

License.