Translates a number between two ranges. A must when running animations on factors such as scroll position.
Originally from Framer.
- value : Input value.
- [a, a] : The first range of two numbers.
- [b, b] : The second range of two numbers.
- limit : bool. Enable to never return a value outside of the b range.