-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
motion: add first class framer support #102531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
gggritso
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I'll tinker with the the animation next week, but my guess is:
- We'll need to adjust the current durations and space them out (e.g., I'd expect a "slow" animation that covers a lot of the screen to be in the 300-500ms range)
- We might need to introduce more sophisticated animation tokens that are physics-based, to support the current modals
In any case, I'll let you know once I try it out. Thanks for putting this together!
P.S. Maybe a little surprising that "framer" is nested at the same level as "slow" under theme.motion but TBH I was about to do the same thing
I could do something like add use String() object and then add a .framer property via proxy. That way I we could define |
|
@JonasBa 🤔 I leave it to you! IMO it's fine as-is, too! Good to keep things simple |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #102531 +/- ##
===========================================
- Coverage 80.99% 80.88% -0.11%
===========================================
Files 8865 8860 -5
Lines 392651 390421 -2230
Branches 24834 24832 -2
===========================================
- Hits 318015 315786 -2229
+ Misses 74271 74270 -1
Partials 365 365 |
Add first class framer motion support to theme. @gggritso I'll let you experiment with the transition definition for the drawer animation and we'll figure out if we can modify one of our current definitions or introduce a brand new one, but I'd like to defer that until we see what the desired transition would look like.
Add first class framer motion support to theme. @gggritso I'll let you experiment with the transition definition for the drawer animation and we'll figure out if we can modify one of our current definitions or introduce a brand new one, but I'd like to defer that until we see what the desired transition would look like.
Add first class framer motion support to theme. @gggritso I'll let you experiment with the transition definition for the drawer animation and we'll figure out if we can modify one of our current definitions or introduce a brand new one, but I'd like to defer that until we see what the desired transition would look like.
Add first class framer motion support to theme.
@gggritso I'll let you experiment with the transition definition for the drawer animation and we'll figure out if we can modify one of our current definitions or introduce a brand new one, but I'd like to defer that until we see what the desired transition would look like.