0

So I have this piece of design (not showing the content):

enter image description here

As you can see here, there is a container and 'All topics' in it.

What I want to achieve here is that when the user scrolls down and reaches that container, there appears a sticky menu which will follow the user until the footer. How can I achieve this.

I tried to write a changeCss function which changes the className of an element under some condition (in this example, height) but it didn't seem to work

vsync
  • 118,978
  • 58
  • 307
  • 400
Arpi
  • 1
  • 4
  • 1
    There are a **lot** of questions covering sticky headers, what have you tried so far (in code)? – DBS Feb 01 '23 at 11:55

0 Answers0