Tagged: team member
-
AuthorPosts
-
August 2, 2022 at 9:12 am #1360259
Is there a method to Animate the Team Member Content Element Image? CSS?
Thanks,
Jas
August 2, 2022 at 1:21 pm #1360304What 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; }
August 2, 2022 at 7:34 pm #1360344The 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
August 2, 2022 at 10:01 pm #1360371and 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 …August 2, 2022 at 11:28 pm #1360377Two animations I’m looking to replicate on multiple sites.
This one:
Enfold 2017 About UsThis one: The photos in the testimonials under where it says “WHAT OTHERS SAY ABOUT US”
EnfoldHow 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
August 3, 2022 at 7:32 am #1360423the 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
August 3, 2022 at 8:26 am #1360431I added it to quick CSS and it doesn’t do anything. Maybe add !important ?
August 3, 2022 at 9:06 am #1360436is 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.August 3, 2022 at 9:18 am #1360441Can’t post it here, unfortunately, but thank you for your help!
August 6, 2022 at 1:35 pm #1360911Hi,
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,
MikeAugust 7, 2022 at 12:02 am #1360959Hi 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, 3 months ago by Jasmer.
August 7, 2022 at 12:20 am #1360963Hi,
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,
MikeAugust 7, 2022 at 12:25 am #1360964Thanks, 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
August 7, 2022 at 4:18 pm #1361002Hi,
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,
MikeAugust 8, 2022 at 2:57 am #1361033Hi 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
August 8, 2022 at 2:03 pm #1361114September 2, 2022 at 1:52 am #1363560Hi Mike!
Damnit! I missed that bracket!
THANK YOU
Jas
September 2, 2022 at 2:38 am #1363562Hi,
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 -
AuthorPosts
- The topic ‘Animate Team Member Content Element Image’ is closed to new replies.