Repository navigation
Conversation
…ent option Adds the motion prop (open, close, release, reduced), presets.sheet and fadeContent.
Guiw5
force-pushed
the
feat/sheet-motion
branch
from
October 12, 2026 22:54
46a0a7e to
3d3825b
Compare
Reopening mid-close reverses from the current position. The sheet preset is now symmetric: 400 ms, closing on the opening curve played backwards.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prototype. Not for merge yet: it is being measured against a consumer app first.
motionprop:{ open, close, release, reduced }, each aPartial<SpringConfig>merged overspringConfig.releaseruns when a drag is let go (snap or swipe to dismiss) and gets the signed gesture velocity.reducedfades the whole sheet in place whenprefers-reduced-motionis set; without it the old instant jump stays.presets.sheet:cubic-bezier(0.32, 0.72, 0, 1), 450ms open / 280ms close, critically damped release spring (tension 1000, friction 63), 150ms reduced fade.fadeContent={false}keeps--rsbs-content-opacityat 1.--rsbs-backdrop-bg.Defaults are unchanged: without
motionevery transition is still the 115ms linear tween (covered by tests).