javascript - How do I make an image partially scroll, then stay fixed, then scroll when you pass a section? -
I also do not know what I want to do
please see instantly on this page :
You will see Plasma Pong and an image under the heading, on the left side, when I scroll through the text, I like that as long as the page is scrolled. However, when you get to the bottom of the page, you will get a notice, there is a footer and there will not be enough space for the title and image if I make it completely stable.
I want to be kept as a footnote hit, then scroll. When you scroll back to the page, it will scroll a little bit, unless it's in the room, then stay again. There is only one effect, but to see any idea in reverse how can I do this?
Set CSS status to stabilize the title. Then use javascript to detect scroll events, when some criteria are met, it resets it to a complete position so that it stays above the footer. Then when the page is scrolled away from the footer, then remove the full position. To see an example of work, go to quirksmode.org. In your articles, he sees the effect you are looking for.
Comments
Post a Comment