Skip to content

Instantly share code, notes, and snippets.

@idmontie
Created April 7, 2018 01:04
Show Gist options
  • Save idmontie/ee49ff1d6c0a1fe0301170875c48717a to your computer and use it in GitHub Desktop.
Save idmontie/ee49ff1d6c0a1fe0301170875c48717a to your computer and use it in GitHub Desktop.
function linear(diff, start, change, duration) {
return change * (diff /= duration) + start;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment