Temzasse / react-modal-sheet

Flexible bottom sheet component built with Framer Motion to provide buttery smooth UX while keeping accessibility in mind 🪐
https://temzasse.github.io/react-modal-sheet/
MIT License
791 stars 75 forks source link

custom springConfig not working #28

Closed alex-cory closed 3 years ago

alex-cory commented 3 years ago

See the codesandbox

Temzasse commented 3 years ago

Hi @alex-cory 👋🏻

Good catch! 👏🏻 The spring config is only used for the snapping behaviour and I forgot to add it to the AnimatePresence related animation. This should be an easy fix in SheetContainer:

animate={{
  y: initialY,
  transition: { type: 'spring', ...springConfig },
}}
Temzasse commented 3 years ago

This is fixed in v1.4.0 ✌🏻