Entrance animation for Muffin Header Builder (Sticky Version)

Hi (@Phil if you are available)

I am here again asking questions about some issues I found in the theme. I am using the Muffin Header Builder for my project and I noticed that if I use a custom sticky header, the transition from the normal header and sticky header is not as smooth as when I use the normal header. It will be amazing please if I can add an animation to the transition of the sticky header.


Thank you for your hard work once again! Please let me know if you want to see the example of what I mean.

Comments

  • edited November 2021

    Sorry to answer my own question:


    I fixed this issue with keyframes under css. I just added the following code:



    .mhb-view.desktop.sticky{

       animation: fadeIn 1s;

        opacity: 1;

    }


    @keyframes fadeIn {

     from {

        top: -100px;

        opacity: 0.7;

     }

     to {

        top: 0px;

        opacity: 1;

     }

    }

    *Depending on the height of your header, you may want to change the value of top: -100px;

    **Now depending on how your headers were developed, you may need to hide the default header.

  • Hello,

    I am glad that you resolved it.

    Please, let me know if I can help you with anything else.


    Thanks

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.