SmartPhoto icon indicating copy to clipboard operation
SmartPhoto copied to clipboard

Disable animations when opening images

Open enkota opened this issue 8 years ago • 5 comments

Hey, brilliant plugin! I was wondering if it was possible to disable the animation effect when opening up an image? I'd prefer just for it to appear than transition up. The same with the fade out effect when closing the window.

Thanks!

enkota avatar Sep 05 '17 23:09 enkota

Hi @enkota I'm sorry but as of now, We haven't prepared such option. I'll add the option soon and let you know :)

steelydylan avatar Sep 06 '17 01:09 steelydylan

Hi @steelydylan that's brilliant thank you :)

enkota avatar Sep 06 '17 05:09 enkota

Was looking for that too!

fourroses666 avatar Dec 28 '17 12:12 fourroses666

Hi @enkota, @fourroses666 I just added the showAnimation option. you can use this option from [email protected] Write a code like below

new SmartPhoto(".js-img-viwer", {
	showAnimation: false
});

steelydylan avatar Dec 30 '17 17:12 steelydylan

@steelydylan thanks very much!

enkota avatar Dec 30 '17 22:12 enkota

Closing due to comments above https://github.com/appleple/SmartPhoto/issues/36#issuecomment-354556698

uidev1116 avatar Jan 11 '23 06:01 uidev1116