- This topic has 9 replies, 2 voices, and was last updated 5 years, 9 months ago by
Sebastian.
Author | Posts |
---|---|
majorpayne
May 31, 2019 at 1:52 pm
|
Heads up! this post was created when Microthemer was at version 5. The current version is 7. Some references to the interface may be out of date. I have two SVG elements that are supposed to appear only when inView. What I’m seeing in Chrome and Firefox is these animation elements already on page, disappear, then reappear running the animation. Doesn’t really matter what the illustrations are, but might help ‘paint’ the picture of what I’m dealing with. The animation element left; packing boxes. The animation element right; person sitting at a desk. Animation should show nothing on page load, 2s later show the boxes BounceInLeft, person at desk BounceInRight. As mentioned above, on page load both elements are already visible for 1s (my estimate), disappear, then reappear from the left and right respectively as part of the animation. Needless to say, just looks goofy. What step am I missing that should keep the opacity of both elements at 0 until inView?
|
Sebastian
June 1, 2019 at 9:06 am
|
Hey, I can provide more definitive advice if you could send me a link to the site either here or via our contact form. But for now I suggest the following CSS:
I’ve removed your transition CSS, including the inView once event. I think that may have been confusing things by making opacity 1, only for the animation to set if to zero when it starts. I also added:
This should ensure the opacity:0 setting above gets overridden by the animation’s opacity 1 setting once the animation completes (I think opacity:1 is applied by the bounce animations). If I haven’t quite got to the bottom of this, please send over a link to the page. Thanks! |
majorpayne
July 15, 2019 at 3:17 pm
|
Hey Sebastian. Sent you a message last week via your Support > Contact page. |
Sebastian
July 15, 2019 at 3:24 pm
|
You did! I’m sorry I missed it. I thought I had replied requesting more information. I will reply to your email now if you prefer to continue offline. Cheers, |
majorpayne
July 15, 2019 at 4:21 pm
|
No worries. After a few days I moved those DIVs to the home page. I would like to figure out why my initial concept didn’t work though – each DIV appearing one after the other with a 1 second delay. They should animate up (fade/slide/bounce etc.) as if appearing from behind the section below (in teal). I created 3 test DIVs on that page, and I would appreciate help getting started, not so much you doing all the work – I really need to figure out what I did wrong. Basically I had the same issue as my original comment; the DIVs would appear on page load, disappear, then reappear to complete the animation. Thanks. |
majorpayne
July 15, 2019 at 4:23 pm
|
Would it help if I gave you access to the Website? |
Sebastian
July 15, 2019 at 4:34 pm
|
Hey, Yes it might help if you could provide me with access via our secure contact form. I see that you have this CSS in your stylesheet:
But I couldn’t find the #headline-home div. Are the 3 elements on the home-page you wish to animate links (rather than divs) with the class ‘home-service-block’? Thanks, |
Sebastian
July 16, 2019 at 9:46 am
|
Hey, Thanks for providing access. Please check on the test page and let me know if I’ve understood your intention correctly. Here is the CSS Microthemer generated to achieve the affect. I explain how it works below.
I hope that makes sense, and you can now apply the same technique elsewhere on the site. Cheers, |
majorpayne
July 16, 2019 at 3:53 pm
|
That’s it! Last week I started to write the CSS manually, but thought MT would do all this for me. That’s when I got in trouble. And I would of never got the “forwards” part, so a big thanks for taking time to explain the process. |
Sebastian
July 16, 2019 at 4:02 pm
|
You’re welcome 🙂 |