Skip to content

How to properly apply dynamic inline styles to fancybox gallery images #563

Answered by fancyapps
dustinKicksite asked this question in Q&A
Discussion options

You must be logged in to vote

OK, thanks for the demo, now I understand the confusion. You see, to get better zoom in/out animation performance, the trick is to animate the thumbnail image and then switch to the actual image. That's why you see the delay. The simplest solution would be to apply a CSS filter to the wrapper element - https://jsfiddle.net/3otdsxwc/

slide.contentEl.style.filter = 'brightness(1.75)';

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@dustinKicksite
Comment options

@fancyapps
Comment options

@dustinKicksite
Comment options

@fancyapps
Comment options

Answer selected by dustinKicksite
@dustinKicksite
Comment options

@dustinKicksite
Comment options

@fancyapps
Comment options

@dustinKicksite
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants