Skip to content

Instantly share code, notes, and snippets.

View rbarisic-lme's full-sized avatar
😄

Robert Barisic - Alt Account rbarisic-lme

😄
View GitHub Profile
@rbarisic-lme
rbarisic-lme / easing.js
Created May 19, 2020 15:06 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* 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