https://github.com/ullaskunder3/linear-interpolation
linear interpolation implementation using vanilla javascript
https://github.com/ullaskunder3/linear-interpolation
Last synced: 12 months ago
JSON representation
linear interpolation implementation using vanilla javascript
- Host: GitHub
- URL: https://github.com/ullaskunder3/linear-interpolation
- Owner: ullaskunder3
- Created: 2021-12-31T18:39:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-31T19:04:32.000Z (over 4 years ago)
- Last Synced: 2025-02-08T22:25:31.899Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# linear-interpolation
linear interpolation implementation using vanilla javascript
- Mouse mouse with friction

Linear interpolation is the simplest type of interpolation: parameter values are calculated in proportion to the difference between key times
lerp allows you to interpolate between min and max. Or in other words, traverse between min and max values, where choosing 0 for fraction puts you at min, choosing 1 puts you at max and for any other value between 0 and 1, puts you anywhere between min and max. You can also see min and max as key poses, like in traditional animation, and lerp outputs as inbetweens ;-).
good example in freeCodeCamp [link](https://www.freecodecamp.org/news/understanding-linear-interpolation-in-ui-animations-74701eb9957c/)