Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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
    Oliver

    #1356497

    Hey 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,
    Mike

    #1356515

    see: 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

    #1356530

    Hi,
    Thank you Guenni007, that does seem to work better.

    Best regards,
    Mike

    #1356536

    Hi,
    thank you both fpr your help. You can close the request. By the way is there a crossfade option available for the lightbox?

    regards
    Oliver

    #1356537

    Hi,
    I don’t know of a crossfade option, perhaps Guenni007 does.
    I’ll leave this open for Guenni007 to reply.

    Best regards,
    Mike

    #1356570

    Yes – 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.