-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feature Cards: Add gradient mask to background blur #12902
Conversation
57a5e27
to
92d47d0
Compare
Size Change: +116 B (+0.01%) Total Size: 958 kB
ℹ️ View Unchanged
|
7fefb29
to
2f1cd5c
Compare
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
gap: ${space[1]}px; | ||
backdrop-filter: blur(12px) brightness(0.7); | ||
padding: 64px ${space[2]}px ${space[2]}px; |
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.
I've left this as the raw value rather than using space[16]
from Source as it ties into the colour stops in the gradient below.
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.
👏 😮💨
2f1cd5c
to
8ec7500
Compare
Seen on PROD (merged by @jamesmockett 10 minutes ago) Please check your changes! |
What does this change?
Masks the background image with a linear gradient so the blur behind the text fades our rather than having a hard edge. A gradient with multiple colour stops is used to approximate a non-linear gradient with an ease-in / ease-out curve, making the transition smoother.
Why?
This makes the effect on web more consistent with the native iOS and Android apps.
Screenshots