jackmoore / zoom

jQuery plugin for zooming images on mouseover.
http://www.jacklmoore.com/zoom/
MIT License
1.54k stars 459 forks source link

No fadeIn, only fadeOut #70

Open johnnydanger opened 9 years ago

johnnydanger commented 9 years ago

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

johnnydanger commented 9 years ago

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

geek-andi commented 9 years ago

The same for me, running jQuery 2.1.3.

kocoten1992 commented 9 years ago

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:

attilavago commented 7 years ago

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

ondrique commented 5 years ago

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

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