-
AuthorPosts
-
June 24, 2022 at 9:13 am #1356371
Hi,
Hello,
I found this
.mfp-zoom-in .mfp-figure, .mfp-zoom-in .mfp-iframe-holder .mfp-iframe-scaler {
transition: 0.7s ease;
}
to make the image come in slower. That works fine.
But the change to the next picture is too abrupt. Is there a way to make the zoom out more slowly when changing the current image?
By the way the page is currently underconstruction.regards
OliverJune 25, 2022 at 11:12 pm #1356497Hey Oliver,
Try this css:.mfp-zoom-in.mfp-wrap, .mfp-zoom-in .mfp-content, .mfp-zoom-in .mfp-figure, .mfp-zoom-in .mfp-iframe-holder .mfp-iframe-scaler { transition: 0.7s ease; }
I had to slow it down more to test, this seems to show the ease better:
.mfp-zoom-in.mfp-wrap, .mfp-zoom-in .mfp-content, .mfp-zoom-in .mfp-figure, .mfp-zoom-in .mfp-iframe-holder .mfp-iframe-scaler { transition: 2s ease; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeJune 26, 2022 at 9:34 am #1356515see: https://enfold.webers-webdesign.de/#portfolio
main part is – i think for you to slow down the transition between – maybe you try first only:
.mfp-zoom-in .mfp-figure, .mfp-zoom-in .mfp-iframe-holder .mfp-iframe-scaler { opacity: 0; /*** here you can influence the transition opacity - test with 1 to see the difference ***/ -webkit-transition: all 2s ease-out; transition: all 2s ease-out; -webkit-transform: scale(0.75); -ms-transform: scale(0.75); transform: scale(0.75); }
___________________________________
– on my page i had :.mfp-ready .mfp-figure { opacity: 0; } .mfp-zoom-in .mfp-figure, .mfp-zoom-in .mfp-iframe-holder .mfp-iframe-scaler { opacity: 0; /*** here you can influence the transition opacity - test with 1 to see the difference ***/ -webkit-transition: all 2s ease-out; transition: all 2s ease-out; -webkit-transform: scale(0.75); -ms-transform: scale(0.75); transform: scale(0.75); } .mfp-zoom-in.mfp-bg, .mfp-zoom-in .mfp-preloader { opacity: 0; -webkit-transition: all 2s ease-out; transition: all 2s ease-out; } .mfp-zoom-in.mfp-image-loaded .mfp-figure, .mfp-zoom-in.mfp-ready .mfp-iframe-holder .mfp-iframe-scaler{ opacity: 1; -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1); } .mfp-zoom-in.mfp-ready.mfp-bg, .mfp-zoom-in.mfp-ready .mfp-preloader { opacity: 0.85; } .mfp-zoom-in.mfp-removing .mfp-figure, .mfp-zoom-in.mfp-removing .mfp-iframe-holder .mfp-iframe-scaler { -webkit-transform: scale(0.75); -ms-transform: scale(0.75); transform: scale(0.75); opacity: 0; } .mfp-zoom-in.mfp-removing.mfp-bg, .mfp-zoom-in.mfp-removing .mfp-preloader { opacity: 0; } .mfp-iframe-scaler{ overflow: visible; /*so the close button is shown*/} .mfp-zoom-out-cur { cursor: auto; } .mfp-zoom-out-cur .mfp-image-holder .mfp-close { cursor: pointer; }
the scale-factor is up to you – maybe a scale-factor nearby the 1 looks better
June 26, 2022 at 12:52 pm #1356530June 26, 2022 at 5:27 pm #1356536Hi,
thank you both fpr your help. You can close the request. By the way is there a crossfade option available for the lightbox?regards
OliverJune 26, 2022 at 6:33 pm #1356537Hi,
I don’t know of a crossfade option, perhaps Guenni007 does.
I’ll leave this open for Guenni007 to reply.Best regards,
MikeJune 27, 2022 at 6:15 am #1356570Yes – please give me a bit time to think about. What i have allready done is to combine animate.css : Link with the transition between the images. see here the galleries in the tabs: next Link
But i guess it will be hard to differ between in- and out-transition.
Edit: Well – this is not perfect – and the question remains whether it is worth the effort.
You have to write your own MagnificPopup script for it, and still drive css adjustments here and there. : https://enfold.webers-webdesign.de/#portfolio
I do not see where the fault is with closing the lightbox in a nice way. -
AuthorPosts
- You must be logged in to reply to this topic.