-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
fix(saber-plugin-image): remove blendIn class when image is loaded #390
Conversation
Deploy preview for saber ready! Built with commit 980d3e4 |
LOL when I refactored the plugin I extracted the inline styles to stylesheet to prevent things like this but it seems |
This is just a temporary fix, if one zooms the image before load complete the bug still appears. We need francoischalifour/medium-zoom#110 to get addressed. I guess I will make a PR to them to inline their transition style. |
loaded: el => { | ||
el.addEventListener('load', () => { | ||
el.setAttribute('data-lazy-loaded', '') | ||
this.removeBlendIn = setTimeout(() => { |
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.
Ah, I didn't look at your code. Guess listening to transitionend
is better?
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.
Yeah sure, I just went with the easiest way.
Summary
The
blendIn
class makes medium-zoom stop workingWhat kind of change does this PR introduce? (check at least one)
If changing the UI/CSS related code, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
fix #xxx[,#xxx]
, where "xxx" is the issue number)You have tested in the following browsers: (Providing a detailed version will be better.)