{/*
OPTION WITH OPACITY
{
const sectionBottom = sectionTop + rect.height;
const multiplier = viewportHeight > 1600 ? 0.34 : 0.22;
- if (scrollY + viewportHeight * multiplier >= sectionTop && scrollY <= sectionBottom) {
+ if (
+ scrollY + viewportHeight * multiplier >= sectionTop &&
+ scrollY <= sectionBottom
+ ) {
currentVisible = id;
}
}
@@ -120,85 +132,333 @@ export const SideMenu = ({ sections, children }) => {
export const SideMenuSectionItem = ({ id, children }) => {
return (
-