Streaming live at 10am (PST)

Scroll location for current class is incorrect


#1

If you go into almost any of the portfolio projects, there’s a sticky menu on the right side. I need the menu to highlight on the current class, but in some cases the menu item seems to be targeting something else.

Any ideas?


https://preview.webflow.com/preview/shivangs-portfolio?utm_source=shivangs-portfolio&preview=64a52b2147abb911ee599fe72be92c59


#2

page: local-code-data-design-cities

Main Problem - wrong anchors selection

Your main problem/issue - If you give anchor only for H2!! The current state will be only for very small scroll area (A) (So it looks like a bug)

Solution - put the id for the wrapper “parent” (A+B) = Sections (Not for specific image -or- heading)

Example 2

Why you put the id on the image?

Use anchors for the parent div.

Summary:

This idea/pattern works great for sections (So devide your content to sections).

Good:
image

Bad (ID on H2 inside area1):
image