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
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">
<template>
<style>
:host {
display: block;
}
</style>
View HTML5 canvas side scroller annimation
// rAF
window.requestAnimationFrame = function() {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.msRequestAnimationFrame ||
window.oRequestAnimationFrame ||
function(f) {
window.setTimeout(f,1e3/60);
}
You can’t perform that action at this time.