How to implement a follow-up

Asked 2 years ago, Updated 2 years ago, 111 views

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

2022-09-22 20:13

3 Answers

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


2022-09-22 20:13

I think it would be good to solve it by setting z-index in the sidebar area.


2022-09-22 20:13

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.


2022-09-22 20:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.