Photo source: http://bootstrapk.com/getting-started/
The sidebar is being implemented.
When scrolling the right sidebar, the position was set to fixed at a specific location, giving it the effect of following.
However, I want to give the effect of scrolling up again so that it doesn't overlap with the footer in a specific location like the picture above when scrolling down.
Please give us related advice such as what criteria should be used to make it natural that it is a specific location.
scrollbar sidebar
If the position is on footer after checking when scrolling, why don't we change the position to absolute and fix it on footer?
I think that site is scrolling and changing the sidebar to fixed if it goes too far and followsYo
I think it would be good to solve it by setting z-index
in the sidebar area.
Every time a scroll event occurs When you scroll to a certain extent, you can change it to absolute and change the height.
It's the same as Jinoh Kim's idea.
© 2024 OneMinuteCode. All rights reserved.