Skip to content

Instantly share code, notes, and snippets.

View nicolashedoire's full-sized avatar
🏠
Working from home

Nicolas.hedoire nicolashedoire

🏠
Working from home
View GitHub Profile
@nicolashedoire
nicolashedoire / box-shadow.html
Created October 23, 2018 13:46 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@nicolashedoire
nicolashedoire / timeBasedAnimationPattern.js
Created September 6, 2017 19:36 — forked from greypants/timeBasedAnimationPattern.js
JS: Time-based animation pattern
// Full Blog Post: http://viget.com/extend/time-based-animation
// requestAnimationFrame() polyfill: https://gist.github.com/1579671
window.APP = window.APP || {};
APP.pause = function() {
window.cancelAnimationFrame(APP.core.animationFrame);
};
APP.play = function() {
@nicolashedoire
nicolashedoire / timeBasedAnimationPattern.js
Created September 6, 2017 19:36 — forked from greypants/timeBasedAnimationPattern.js
JS: Time-based animation pattern
// Full Blog Post: http://viget.com/extend/time-based-animation
// requestAnimationFrame() polyfill: https://gist.github.com/1579671
window.APP = window.APP || {};
APP.pause = function() {
window.cancelAnimationFrame(APP.core.animationFrame);
};
APP.play = function() {