zoom icon indicating copy to clipboard operation
zoom copied to clipboard

No fadeIn, only fadeOut

Open johnnydanger opened this issue 10 years ago • 5 comments

For some reason the zoomed image isn't fading in, it's only fading out. Tested with current versions of Safari and Chrome.

johnnydanger avatar Jan 26 '15 18:01 johnnydanger

Upon further testing, the problem only recurs using jQuery 2.11. jQuery 1.x works fine.

johnnydanger avatar Jan 26 '15 18:01 johnnydanger

The same for me, running jQuery 2.1.3.

geek-andi avatar Mar 12 '15 11:03 geek-andi

There is a work around, on line 135. replace the '$.support.opacity ? settings.duration : 0' with 'settings.duration', just so until this is fixed :+1:

kocoten1992 avatar May 28 '15 00:05 kocoten1992

@kocoten1992 , dude, you're awesome. Saved me a lot of head-ache. Works with latest jQuery!

attilavago avatar Aug 25 '17 17:08 attilavago

Also, a solution to this is to set the duration to 0 and style the transition in CSS:

.zoomImg { transition: opacity .5s !important; }

ondrique avatar Apr 25 '19 12:04 ondrique