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

AltImages become visible after resize when duration is specified #357

Closed
techfg opened this issue Jan 27, 2021 · 0 comments · Fixed by #360
Closed

AltImages become visible after resize when duration is specified #357

techfg opened this issue Jan 27, 2021 · 0 comments · Fixed by #360
Labels
Milestone

Comments

@techfg
Copy link
Collaborator

techfg commented Jan 27, 2021

Describe the bug
When invoking the resize method and specifying a duration, any AltImages attached to ImageMapster for the bound image become visible.

To Reproduce
Steps to reproduce the behavior:

  1. Open AltImages example
  2. Execute $('img').mapster('resize', 1000, null, 25, null) in console
  3. 5 images are now visible - the original image and the 4 altimages that are pre-loaded

Expected behavior
The AltImages should remain hidden and not visible.

Screenshots
N/A

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
The reason for the issue is that IM calls animate when duration is specified and the animate call is "showing" the element as part of the animation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant