codehaven - php snippets - coding help
Generic filters
Exact matches only
  • Sticky header – Logo smaller and adds border on scroll

    25th October 2022


    Css - Codehaven

    This is purely code just to apply a logo shrink on scroll and also applies a border on the bottom of the header using elementor.

    Make sure you add the id of the logo to #mylogo, and the header section add the ID of #myheader.

    Then add the code below to the section css in the elementor panel.
    Also use the offset effect in the panel to 100

    Was this code snippet helpful?