Skip to content

Translates a number between two ranges. Never gets tired.

Notifications You must be signed in to change notification settings

codeandconspire/intune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

intune

npm version downloads js-standard-style

Translates a number between two ranges. A must when running animations on factors such as scroll position.

Originally from Framer.

Arguments

  • 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.

License

MIT

About

Translates a number between two ranges. Never gets tired.

Resources

Stars

Watchers

Forks

Packages

No packages published