1.0.0 • Published 7 years ago

whydoidoit-bounce v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Introduction

A function to bounce between two extents over a duration.

Installation

npm install --save whydoidoit-bounce

Usage

import bounce from 'whydoidoit-bounce'

...

//Bounce position between 0 and 10 at the current "time" with a duration of 4 seconds
let currentValue = bounce(0, 10, time, 4);
 

Requirements

Uses ES6/Babel/PlayCanvas template.