Skip to content

Commit e830e1a

Browse files
authored
Update math.js
1 parent db55e35 commit e830e1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/utils/math.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function map(valueToMap, inMin, inMax, outMin, outMax) {
2424
return gsap.utils.mapRange(inMin, inMax, outMin, outMax, valueToMap);
2525
}
2626

27-
export function pixelToRem(pixels, innerWidth = window.innerWidth) {
27+
export function remToPixel(pixels, innerWidth = window.innerWidth) {
2828
return (innerWidth / 1512) * 10 * pixels;
2929
}
3030

0 commit comments

Comments
 (0)