Skip to content
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

Image: Duplicate image is visible when opening lightbox #55960

Closed
artemiomorales opened this issue Nov 8, 2023 · 0 comments · Fixed by #63381
Closed

Image: Duplicate image is visible when opening lightbox #55960

artemiomorales opened this issue Nov 8, 2023 · 0 comments · Fixed by #63381
Labels
[Block] Image Affects the Image Block [Type] Bug An existing feature does not function as intended

Comments

@artemiomorales
Copy link
Contributor

Description

Currently, the lightbox works by creating a duplicate image and animating it. However, the original image is still visible for a moment while the lightbox is opening.

We should hide the original image on click to improve this experience.

Step-by-step reproduction instructions

  1. Add an image to a post
  2. Enable Expand on click in the block settings
  3. Publish and view the post; click on the image
  4. See that the image in the content persists for a moment as a duplicate image zooms in

Screenshots, screen recording, code snippet

lightbox-lingering-image.mp4

image

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant