We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db55e35 commit e830e1aCopy full SHA for e830e1a
1 file changed
app/utils/math.js
@@ -24,7 +24,7 @@ export function map(valueToMap, inMin, inMax, outMin, outMax) {
24
return gsap.utils.mapRange(inMin, inMax, outMin, outMax, valueToMap);
25
}
26
27
-export function pixelToRem(pixels, innerWidth = window.innerWidth) {
+export function remToPixel(pixels, innerWidth = window.innerWidth) {
28
return (innerWidth / 1512) * 10 * pixels;
29
30
0 commit comments