Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Bluh bluh

hinell hinell

💭
Bluh bluh
View GitHub Profile
@gre
gre / easing.js
Last active Aug 11, 2020
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
View easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity
You can’t perform that action at this time.