Reputation: 403
I already tried overflow:hidden which doesn't scroll ( and the scroll bar is ugly)
How can I solve this ? thank you very much !
https://codesandbox.io/s/framer-motion-animatesharedlayout-app-store-demo-i1kct?from-embed
Upvotes: 0
Views: 1066
Reputation: 4649
It looks like a few things are preventing the scroll:
height: auto
sizes the container to fit the content.overflow: hidden
instead of scroll
.pointer-events: none
prevents the element from getting the scroll events.Changing this block in styles.css
:
.open .card-content {
height: auto;
max-width: 700px;
overflow: hidden;
pointer-events: none;
}
to this:
.open .card-content {
max-width: 700px;
overflow-y: scroll;
}
seems to work.
Upvotes: 2