Skip to content

Instantly share code, notes, and snippets.

The neck bone's connected to the head bone

Thomas Cremers ttcremers

The neck bone's connected to the head bone
View GitHub Profile
ttcremers / polymer-templatize-example.html
Created Jul 23, 2018
Simple example of the Polymer.Templatize API in a component (Polymer 2.0).
View polymer-templatize-example.html
<link rel="import" href="../polymer/polymer-element.html">
<dom-module id="polymer-templatize-example">
:host {
display: block;
View HTML5 canvas side scroller annimation
// rAF
window.requestAnimationFrame = function() {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.msRequestAnimationFrame ||
window.oRequestAnimationFrame ||
function(f) {
You can’t perform that action at this time.