Jump to content

make sticky blocks move up when footer is reached

Recommended Posts

Hello I have a few sticky blocks and would like to make them move up when the footer is reached/ appears. how can i do this?

The code i used to make the blocks sticky is: 

@media only screen and (min-width:768px) { 
  .fe-block-yui_3_17_2_1_1692163036742_2082 {
    position:sticky;
    top:500px;
  }
}

It is for the followin url: Basic Hoeht crew white — Hoeht-Studio

password: Minka0520

 

the blocks that should move up are in the red box in image below

image.thumb.png.945fa8a2cbe2ca009d909a56e85f37f1.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.