juancho11gm/star-plus

Navbar Animation

Closed this issue · 0 comments

Expected Behavior

Show content navbar when the plan component touches the viewport's top edge.

Current Behavior

It is not hidden.

Possible Solution

Use offsetTop to compare the Plans component to the viewport's top.

https://stackoverflow.com/questions/65228622/detecting-when-an-elements-hits-the-top-of-viewport

How to reproduce (for bugs)

Scroll the website to see the Plans component