[Resolved] filters button change color when scrolled

Home Forums Support [Resolved] filters button change color when scrolled

Home Forums Support filters button change color when scrolled

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1674142
    johnaps

    Hello GP Team.

    I am trying for days now to make the product categories filter’s button to change background color when it leaves its initial position and starts to scroll…

    In the past you have help me to implement this button with the following css classes=”slideout-toggle woo-filter-toggle hide-on-mobile” and i have also given it the id=”mfh”.

    #1674216
    Ying
    Staff
    Customer Support

    Hi Johnaps,

    You have this CSS in your site:
    https://www.screencast.com/t/ufzjWBM0pwlT

    You can change the color in that CSS, but if you have other elements that also have the stickyclass, the change may apply to them as well.

    In that case, use this selector could override the stickyclass: #mfh.sticky.slideout-toggle

    #1674275
    johnaps

    It was a bit more complicated because i also wanted to hide the sticky element when scrolling down…

    But at last I MADE IT! ๐Ÿ™‚

    Thank you for your help nevertheless!!

    #1674313
    Ying
    Staff
    Customer Support

    You are welcome, hope you can figure the rest out ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.