Add masonry box hover effect

Home Forums Support Add masonry box hover effect

Home Forums Support Add masonry box hover effect

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #68773
    E Mate

    Hey there, just a suggestion, would it be possible to add a hover effect on the whole masonry box, a slow enlargement effect whenever you hover over a certain post.

    Cheers!

    EMATE.co

    #68774
    E Mate
    #68966
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You could potentially do something using some custom javascript.

    Something like this added to the wp_footer section of GP Hooks may work (untested):

    <script>
          jQuery(document).ready(function($) {
                $( ".masonry-post" ).hover(
                      function() {
                            $( this ).css( 'transform', 'scale(1.1)' );
                      }, function() {
                            $( this ).css( 'transform', 'scale(101)' );
                      }
                );
          });
    </script>
    #910893
    Jorge

    Here’s the trick GP guys have found out to solve it 🙂

    https://docs.generatepress.com/article/add-a-zoom-effect-on-hover-to-post-images/

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