Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #1172107

    Dear Enfold Support,

    on this site I try to achieve a change: http://www.chironkft.net/konyhastudioknak/

    With the standard gallery element I can set the thumbnail size – that’s good.
    With the masonry gallery I can’t set this.
    However I don’t like the fade in fade out effect of the gallery thumbnails, but I like the zoom in zoom out effect of the masonry thumbnails.

    What I’d like to have is either a masonry gallery for which I can set the thumbnail size or to be able to change the hover effect of the standard image gallery from fade in-out to zoom in-out.

    Thanks!

    #1172559

    Hey mihand78,
    To have the zoom effect on the gallery please try this css in your Quick CSS:

    .avia-gallery-thumb a {
        -webkit-animation: in 1s;
    }
    
    .avia-gallery-thumb a:hover {
        -webkit-animation: out 1s;
    }
    
    @-webkit-keyframes in {
        from   { -webkit-transform: scale(1.05,1.05); }
        to { -webkit-transform: scale(1.05,1.05);}
    }
    
    @-webkit-keyframes out {
        0%   { -webkit-transform: scale(1.05,1.05); }
        100% { -webkit-transform: scale(1.05,1.05); }
    }
    
    #top .avia-gallery .avia-gallery-thumb a:hover {
        opacity: 1 !important;
    }

    Best regards,
    Mike

    #1172565

    Dear Mike,

    thank you for the suggestion.
    I tried it out, but it makes a sudden enlargement of the thumbnails, it is not really a zoom effect. The image itself should remain the same size. Also the change is sudden (not really smooth) and reverts to the original size after a few secs. It should stay until the mouse is over the element.

    By the way I see that if I add something to the quick css it will be generally applied. Is it possible to customize a certain gallery independently from the others?

    BR
    András

    #1172572

    Hi,
    I see that your page is now a masonry item, do you have another page with a gallery item to test with? To apply this to only one or some gallery items you would add a custom class to the gallery and then include the custom class in the css.

    Best regards,
    Mike

    #1172701

    Dear Mike,

    I’ve tested a workaround with the masonry gallery. Now I’ve put the normal gallery back for testing.
    I’m still interested as I have dozens of standard galleries created, so it would be really tedious to change them all to masonry.

    BR

    András

    #1172769

    Hi,
    Thanks, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    .avia-gallery-thumb a {
        -webkit-animation: in 1.5s;
        animation-fill-mode: forwards;
    }
    
    .avia-gallery-thumb a:hover {
        -webkit-animation: out 1.5s;
        animation-fill-mode: forwards;
    }
    
    @-webkit-keyframes in {
        from   { -webkit-transform: scale(1.05,1.05);}
        to { -webkit-transform: scale(1,1); }
    }
    
    @-webkit-keyframes out {
        0%   { -webkit-transform: scale(1,1); }
        100% { -webkit-transform: scale(1.05,1.05); }
    }
    
    #top .avia-gallery .avia-gallery-thumb a:hover {
        opacity: 1 !important;
    }

    I didn’t see a custom class added to this gallery so I didn’t add it to the css, if you add a custom class I can adjust this for you.

    Best regards,
    Mike

    #1172789

    Dear Mike,

    this creates a much nicer result. The overall size of the image still changes, though. So it is not really a zooming, but more of an enlarging. But if you can’t fix this, it still looks way better than before.

    Regarding the customs css class, to be honest I don’t know how it is created. Can you link me a description for that?

    Thank you,

    András

    #1173046

    Hi,
    In the latest version 4.7.1 go to any element > advance tab > developer settings > custom css class:
    2020-01-13-194100
    as for the zoom effect, the structure of the elements are a little different so it’s acting a little different, I tried to match it the best I could.

    Best regards,
    Mike

    #1173293

    Dear Mike,

    I installed this 4.7.1 update and I see the interface is way better than before!

    I also gave the custom css class name: test

    How can I implement your changes for this class only?

    BR

    András

    #1173353

    Hi,
    Thank you, it would be like this:

    .test .avia-gallery-thumb a {
        -webkit-animation: in 1.5s;
        animation-fill-mode: forwards;
    }
    
    .test .avia-gallery-thumb a:hover {
        -webkit-animation: out 1.5s;
        animation-fill-mode: forwards;
    }
    
    @-webkit-keyframes in {
        from   { -webkit-transform: scale(1.05,1.05);}
        to { -webkit-transform: scale(1,1); }
    }
    
    @-webkit-keyframes out {
        0%   { -webkit-transform: scale(1,1); }
        100% { -webkit-transform: scale(1.05,1.05); }
    }
    
    #top .avia-gallery.test .avia-gallery-thumb a:hover {
        opacity: 1 !important;
    }

    After applying the css, Please clear your browser cache and check.

    Best regards,
    Mike

    #1173417

    Thanks, it works!

    BR

    András

    #1173802

    Hi András,

    Great, I’m glad that you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1175145

    Dear Mike,

    I realized one more thing here.
    Your modification works on a gallery, if it is shown with ‘small thumbnails’
    Like here on the top: https://www.chironkft.net/portfolio-item/munka6-2/

    But if it is shown with one big image and the rest is shown via lightbox, then it is not working on the big image. See here:
    https://www.chironkft.net/portfolio-item/proba/
    There comes the fading effect again (plus the red circle).
    Is it possible to change this to the zoom effect also?

    Thanks

    András

    #1175230

    Hi,
    That one has different classes so please add this css for it to work:

    a.avia-gallery-big {
        -webkit-animation: in 1.5s;
        animation-fill-mode: forwards;
    }
    
    a.avia-gallery-big:hover {
        -webkit-animation: out 1.5s;
        animation-fill-mode: forwards;
    }
    
    @-webkit-keyframes in {
        from   { -webkit-transform: scale(1.05,1.05);}
        to { -webkit-transform: scale(1,1); }
    }
    
    @-webkit-keyframes out {
        0%   { -webkit-transform: scale(1,1); }
        100% { -webkit-transform: scale(1.05,1.05); }
    }
    
    #top a.avia-gallery-big:hover {
        opacity: 1 !important;
    }
    .avia_transform a.avia-gallery-big:hover .image-overlay {
        opacity: 0 !important;
    }

    Best regards,
    Mike

    #1175487

    Dear Mike,

    this is working fine, thank you.

    My final question regarding this:
    you showed me how to focus the CSS with custom ID.

    Is it also possible to focus the php scripts above in the similar manner? (So it would only affect certain elements)

    BR

    András

    #1175809

    Hi,
    I believe that you wrote “PHP” in error, the code above is “CSS”
    Yes, you can add a custom “class” to your element and the code above to focus certain elements in the same matter.
    Try adding .testbig followed by a space to the beginning of your code above, and add testbig to the element’s “custom class” field.

    Best regards,
    Mike

    #1175824

    Dear Mike,

    yes I see it was confusing, because you suggested php to me in an other thread.
    https://kriesi.at/support/topic/remove-alt-text-on-masonry-images-seo-friendly/
    But that is closed now.
    I wanted to ask if you can create custom php just like custom css.

    BR

    András

    #1175829

    Hi,
    I see, yes you can add a custom class to the code in the same way, I reopened the topic to answer there, please check.
    Shall we close this thread then?

    Best regards,
    Mike

    #1175847

    Dear Mike,

    thanks, we can close this, too.

    BR

    András

    #1175910

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Gallery thumbnail hover effect: zoom instead of fade’ is closed to new replies.