Jump to content

Split / Sticky Scroll Section

Recommended Posts

Site URL: https://www.morethanwords.nz/preorder

Hi, I'm looking to have the sticky scroll section for my 1 product page.

My aim is to have the Image (section 1) on one side, and the below text (section 2) on the other side. 
Something similar to this page (which is Squarespace's default product page): https://www.morethanwords.nz/store/p/imagerycards or https://www.charliee.com/paintings/2020

Unfortunately the default product page doesn't offer much customisation when it comes to the text on the side .etc

How do I go about this? I'm not amazing at code so simple steps would be helpful!

Edited by scdavid
Hiding password for future reasons
Link to comment
23 minutes ago, scdavid said:

Site URL: https://www.morethanwords.nz/preorder

Site pass: 12345

Hi, I'm looking to have the sticky scroll section for my 1 product page.

My aim is to have the Image (section 1) on one side, and the below text (section 2) on the other side. 
Something similar to this page (which is Squarespace's default product page): https://www.morethanwords.nz/store/p/imagerycards or https://www.charliee.com/paintings/2020

Unfortunately the default product page doesn't offer much customisation when it comes to the text on the side .etc

How do I go about this? I'm not amazing at code so simple steps would be helpful!

Charliee combine gallery block and text block to achive this

For your site, can you share it with protected password so we can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment

I'll PM for checking it

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment

You can try the following code in Home > Design > Custom Css

section[data-section-id="60bb260f6ac2b824043356a2"]  .sqs-layout  > .row > .col:first-child {
  position: sticky;
  top: 90px;
}

Let me know how it works

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
22 hours ago, bangank36 said:

You can try the following code in Home > Design > Custom Css

section[data-section-id="60bb260f6ac2b824043356a2"]  .sqs-layout  > .row > .col:first-child {
  position: sticky;
  top: 90px;
}

Let me know how it works

Worked a treat for desktop!

Sorry to add another problem, whilst scrolling on mobile, the text can be seen behind. Not a major problem, but any chance of the text not being seen?

Thank you so much already, legend!

Screen Shot 2022-02-26 at 8.39.02 PM.png

Link to comment
On 2/26/2022 at 2:39 PM, scdavid said:

Worked a treat for desktop!

Sorry to add another problem, whilst scrolling on mobile, the text can be seen behind. Not a major problem, but any chance of the text not being seen?

Thank you so much already, legend!

Screen Shot 2022-02-26 at 8.39.02 PM.png

You can disable code on mobile only by use this new code

@media screen and (min-width:768px) {
section[data-section-id="60bb260f6ac2b824043356a2"]  .sqs-layout  > .row > .col:first-child {
  position: sticky;
  top: 90px;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
11 hours ago, tuanphan said:

You can disable code on mobile only by use this new code

@media screen and (min-width:768px) {
section[data-section-id="60bb260f6ac2b824043356a2"]  .sqs-layout  > .row > .col:first-child {
  position: sticky;
  top: 90px;
}
}

 

Hi there,

Thanks for your input. Just tried the code and it doesn't make any change to mobile unfortunately 😞

Link to comment
On 2/28/2022 at 4:03 AM, scdavid said:

Hi there,

Thanks for your input. Just tried the code and it doesn't make any change to mobile unfortunately 😞

I meant remove code you used & add the code I sent. It will work on desktop + tablet only

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...
On 3/28/2023 at 7:00 AM, SierraA said:

Hi, I am looking to have the right side of the page fixed, and the left side with the images scrollable.

https://triangle-tuba-nfxy.squarespace.com/slabs/oc03-blue-ocean

Password: Marbella

Thank you

image.thumb.png.347284f9108a7b3bd01287bef13c139e.png

Try this code to Design > Custom CSS

@media screen and (min-width:768px) {
.fe-block-ac48c7c0590dabeade8b {
    position: sticky;
    position: -webit-sticky;
    top: 0;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 months later...
Quote

Can someone help me do a split screen for a section like this. Im having a hard time figuring out a code for it .

I don't think you will be able to get a satisfactory sticky effect on that page.

Please see the following.

Here is the sticky effect on a fairly wide viewport. Notice that you've just started scrolling and then the fun ends.

With a narrow viewport the sticky effect breaks down even though the code is still there.

 

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
17 hours ago, creedon said:

I don't think you will be able to get a satisfactory sticky effect on that page.

Please see the following.

Here is the sticky effect on a fairly wide viewport. Notice that you've just started scrolling and then the fun ends.

 

With a narrow viewport the sticky effect breaks down even though the code is still there.

 

 

Thank you so much!!

Link to comment

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.