lightbox icon indicating copy to clipboard operation
lightbox copied to clipboard

Modal resize animation

Open flierville opened this issue 7 years ago • 2 comments

Hello,

Is possible to add a function that resizes slowly (animation) the modal when the image is loading ?

flierville avatar Apr 03 '17 18:04 flierville

I tried this but couldn't figure out any nice way of doing it, perhaps you or someone else will have more luck

ashleydw avatar Apr 04 '17 18:04 ashleydw

Inside the key: '_resize',

I juste add the Tow lines :

$(".modal-content").animate({"height":maxHeight + 89});
$(".modal-dialog").animate({"width":"auto"});

just Before this lines :

this._$lightboxContainer.css('height', maxHeight);
this._$modalDialog.css('width', 'auto').css('maxWidth', width);

I have something almost correct

flierville avatar Apr 06 '17 13:04 flierville