Tagged: 

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #1360259

    Is there a method to Animate the Team Member Content Element Image? CSS?

    Thanks,

    Jas

    #1360304

    What do you like to do? When should animation start – on load, on hover etc. What kind of animation? …

    you can use f.e.: some of the predefined keyframe animations on enfold :
    https://kriesi.at/documentation/enfold/animation/#customizing-animation-for-alb-elements
    animate the whole container and image too

    .avia-team-member {
        -webkit-animation: avia-btt 0.7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275)!important; 
        animation:  avia-btt 0.7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275)!important; 
    }
    
    .team-img-container img {
        -webkit-animation:  avia-fadein 3s 1 linear  !important ; 
        animation:  avia-fadein  3s 1 linear  !important; 
    }
    #1360344

    The animation where you see the image sort of pop in to view and grow to full size when you scroll the page. I don’t remember the name of the animation at the moment, but it’s a common one when you’re scrolling on the sample theme pages on the enfold website.

    Thanks,

    Jas

    #1360371

    and that sample page has no url ?
    there are a lot of demos : https://kriesi.at/themes/enfold-overview/
    And inside every demo page there are a lot of suppages …

    #1360377

    Two animations I’m looking to replicate on multiple sites.

    This one:
    Enfold 2017 About Us

    This one: The photos in the testimonials under where it says “WHAT OTHERS SAY ABOUT US”
    Enfold

    How can I apply either one of those animations (I’ll decide later which one) to the Team Member photos on the link below? I’ll be applying these to other sites as well.

    Thanks for your patience,

    Jas

    • This reply was modified 2 years, 4 months ago by Jasmer.
    • This reply was modified 2 years, 4 months ago by Jasmer.
    #1360423

    the last one is easier to get –

    avia_appear (a bit less fast than on testimonial)
    f.e. only for the image:

    .team-img-container img {
        -webkit-animation:  avia_appear 0.8s 1 cubic-bezier(0.175,0.885,0.320,1.275);
        animation:  avia_appear 0.8s 1 cubic-bezier(0.175,0.885,0.320,1.275);
    }

    the first has more settings – there is a keyframe animation – but on addition some other settings. i will have a look on that

    #1360431

    I added it to quick CSS and it doesn’t do anything. Maybe add !important ?

    #1360436

    is there a page where i can see the issue?
    Please remember that I am a participant like you – so I don’t see a private content area.

    #1360441

    Can’t post it here, unfortunately, but thank you for your help!

    #1360911

    Hi,
    Thanks for your patience, please try this css to make your team member image grow on page load.

    .team-img-container img {
    	animation: growin 4s;
    	animation-fill-mode: forwards;
    }
    @keyframes growin {
      from {transform: scale(.1)}
      to {transform: scale(1)}
    }

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

    Best regards,
    Mike

    #1360959

    Hi Mike,

    Does nothing. I cleared the browser cache and the cache at server level. No effect. Add !important?

    the CSS is in place now. You can check for yourself.

    Thank you,

    Jasmer

    • This reply was modified 2 years, 4 months ago by Jasmer.
    #1360963

    Hi,
    Please note that your team image is down the page a bit, so the animation may be happening before you scroll down.
    Please try scrolling down to the image and then refreshing the page.

    Best regards,
    Mike

    #1360964

    Thanks, does nothing. When you attempted to load the website by clicking on the website listed in the Private Content area below – did you see something different?

    Also on this page https://kriesi.at/themes/enfold/ it will not animate until you scroll to it – which is what I want.

    Thank you,

    Jasmer

    • This reply was modified 2 years, 4 months ago by Jasmer. Reason: added link
    • This reply was modified 2 years, 4 months ago by Jasmer.
    #1361002

    Hi,
    Thanks for your feedback, for future readers I would point out that in this situation we have two team member elements below the “fold” (out of view) on the page, each team member element has quite a lot of text, so animating the column or the element will not be satisfactory, it will need to be the team member image.
    We also want each team member image to animate when it is in the middle of the screen, “each” meaning that not all at the same time.
    I add this background because I don’t believe that this user wants any images or links of the solution posted.
    Ok, so try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_waypoint_animation_script() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($){
     $('.team-img-container img').each( function(index, element){
            $(element).waypoint(function(direction) {
                	if (direction === 'down') {
                    $(element).addClass('waypoint-animation');
                	}
      }, {
        offset: '50%'
      });
            });
    })(jQuery);
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_waypoint_animation_script');

    and this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field instead:

    .team-img-container img {
    	transform: scale(.1)
    }
    .team-img-container .waypoint-animation {
    	animation: growin 2s;
    	animation-fill-mode: forwards;
    }
    @keyframes growin {
      from {transform: scale(.1)}
      to {transform: scale(1)}
    }

    then check again.
    Please see the screenshot in the Private Content area.

    Best regards,
    Mike

    #1361033

    Hi Mike,

    I’m getting no effect. I’ve tried 3 different browsers (desktop and mobile) and cleared the server cache as well. Please feel free to check for yourself with the credentials below.

    I placed the CSS in QuickCSS at the bottom and the former in functions.php file at the bottom.

    Yes, as you mentioned I want only the image to animate exactly as in this link at the bottom of the page under WHAT OTHERS SAY ABOUT US

    Thanks so much,

    Jas

    #1361114

    Hi,
    Thanks for the login, you had a missing bracket from a different css rule in your Quick CSS, I corrected for you.
    2022-08-08_001.jpg
    please clear your browser cache and check.

    Best regards,
    Mike

    #1363560

    Hi Mike!

    Damnit! I missed that bracket!

    THANK YOU

    Jas

    #1363562

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Animate Team Member Content Element Image’ is closed to new replies.