-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Inserter: Fade pattern previews in #63576
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: +85 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
Coincidently I was trying a related thing yesterday. What I found was that In my case, I wanted to avoid rendering the pattern preview until it entered the viewport to see if it helped the ones already entered load more quickly. To make that work the pattern previews have to start with a |
Yep, passing a handler sounds like a good way to isolate any changes. Note that I don't mean to land this, not in the way it is, but I wanted to put it in a PR so it leaves a record. As discussed in the related issue, this doesn't solve the primary issue, and I'll be looking for a proper solution. In the meantime, we could add the fade in effect, because it can improve the appearance of the pattern previews. |
What?
Crude experimentation to fade in pattern previews.
Please don't merge, this isn't production-ready.
Why?
Pattern previews loading is often slow and clunky.
See #44750
How?
Adding an extra prop and some a simple CSS opacity transition.
Testing Instructions
Open the pattern inserter and switch through some tabs.
Testing Instructions for Keyboard
None.
Screenshots or screencast
Screen.Recording.2024-07-15.at.17.51.28.mov