Reduce spring animation mass

This commit is contained in:
Luke Vella 2022-04-16 16:26:03 +01:00
parent f38392e9b0
commit f86b622694

View file

@ -45,7 +45,7 @@ export const ControlledScrollDiv: React.VoidFunctionComponent<{
className="flex h-full" className="flex h-full"
transition={{ transition={{
type: "spring", type: "spring",
mass: 0.5, mass: 0.4,
}} }}
initial={{ x: 0 }} initial={{ x: 0 }}
animate={{ x: scrollPosition * -1 }} animate={{ x: scrollPosition * -1 }}