Jump to content

autoscroll list items in gallery view

Recommended Posts

Ok and my next question is, is there a way for the viewer to stop the scrolling action?  For example if they click on the "back" arrow to go back one item, they probably don't want it to keep moving again.  Or if they clicked anywhere in the list item (over any text that didn't have any link already)

 

Link to comment
Quote

I only had to make a small tweak to the code to get it to work

I had already added that feature to the code but that code was in a DM. Please see Section Auto Layout Right Arrow Auto Click.

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
6 hours ago, Timacious said:

Ok and my next question is, is there a way for the viewer to stop the scrolling action?  For example if they click on the "back" arrow to go back one item, they probably don't want it to keep moving again.  Or if they clicked anywhere in the list item (over any text that didn't have any link already)

That a is bit of a tricky one. I'd have to cogitate on this one a bit. I'm sure something can be done but how involved is it going to be? Once it's stopped, does it start up again? And if so, what is the interval for that. There are subtle things that fall out of a good user interface for this kind of auto play, stopping, starting behaviour.

Bump this thread in several days to remind me if I've not pinged back.

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
  • 4 weeks later...

I just got back from vacation recently and was glad to see your response.

I think the preferred behavior is that the auto-scroll stops indefinitely, until the page is refreshed or reloaded in the browser.  And the manual scroll (clicking on forward and back arrows) would not be affected either way (it would still work as usual).

 

Link to comment
Quote

Ok and my next question is, is there a way for the viewer to stop the scrolling action?

I have updated my code post. I added a kill upon user action.

Let us know how it goes.

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
  • 4 months later...
7 hours ago, Ekin said:

Is there a way to hide the arrows?

Please post the URL for a page on your site where we can see your issue.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password is not a security breach. Please read the documentation at the link provided to understand how it works.

Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

We can then take a look at your issue.

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
16 hours ago, creedon said:

Please post the URL for a page on your site where we can see your issue.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password is not a security breach. Please read the documentation at the link provided to understand how it works.

Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

We can then take a look at your issue.

https://sphere-bassoon-s7rj.squarespace.com/epcs - the carousel is towards the bototm of page, and pw is kirankiran

Link to comment
On 12/21/2021 at 11:33 AM, Ekin said:

Is there a way to hide the arrows?

Add the following to Page Settings > Advanced > Page Header Code Injection for the page. Please see per-page code injection.

<style>
  
  /* desktop */
  
  [data-section-id="61c0e388d893993c573b2206"] .user-items-list-banner-slideshow .arrow-container,
  
  /* mobile */
  
  [data-section-id="61c0e388d893993c573b2206"] .user-items-list-banner-slideshow .mobile-arrows
  
    {
    
      display : none;
      
      }
      
  </style>

This is for v7.1.

Let us know how it goes.

Edited by creedon
version 2

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
  • 3 weeks later...
33 minutes ago, Ekin said:

just noticed the arrows are still visible on mobile. Anyway it can be hidden across all breakpoints?

I'm not seeing arrows on mobile. I checked my mobile emulation and on iPhone X.

1122257522_ScreenShot2022-01-07at2_00_53PM.thumb.png.c4de94477a33090f056a4329065f6907.png

Can you tell us more about the mobile device? OS? Browser? Do you have a screenshot?

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
30 minutes ago, Ekin said:

Sorry I was looking at a page I did not apply code to yet. Apologies!!

Looking over this again, actually I can't get it to work on mobile. The reason you were not seeing the arrows previously was because there was no second List Item content added. Currently- the arrows appear on mobile on homepage, /home2 and on /epcs pages. 

Link to comment

@Ekin

I have updated my code post.

There are also some variations that you can do on the code.

It can be made to effect all carousels on a single page.

<style>
  
  /* desktop */
  
  .user-items-list-banner-slideshow .arrow-container,
  
  /* mobile */
  
  .user-items-list-banner-slideshow .mobile-arrows
  
    {
    
      display : none;
      
      }
      
  </style>

For a site wide effect. Add the following to Design > Custom CSS.

/* desktop */

.user-items-list-banner-slideshow .arrow-container,

/* mobile */

.user-items-list-banner-slideshow .mobile-arrows

  {
  
    display : none;
    
    }

Let us know how it goes.

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
18 minutes ago, creedon said:

@Ekin

I have updated my code post.

There are also some variations that you can do on the code.

It can be made to effect all carousels on a single page.

<style>
  
  /* desktop */
  
  .user-items-list-banner-slideshow .arrow-container,
  
  /* mobile */
  
  .user-items-list-banner-slideshow .mobile-arrows
  
    {
    
      display : none;
      
      }
      
  </style>

For a site wide effect.

/* desktop */

.user-items-list-banner-slideshow .arrow-container,

/* mobile */

.user-items-list-banner-slideshow .mobile-arrows

  {
  
    display : none;
    
    }

Let us know how it goes.

This works great, thank you again!!

Link to comment
  • 5 weeks later...
On 2/7/2022 at 1:03 PM, kellyhuffs said:

did you ever add that to the code?

I have not added that feature in. I have tinkered with some code but there are some subtleties in how the images are being manipulated that, so far, I've not replicated.

Have you considered using the Infinite Scroll feature.

1236630819_ScreenShot2022-02-12at10_27_06AM.png.c193250a0d14b9ad33a84e8254c2e144.png

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

I have updated the code cited in my July 20, 2021 post earlier in this thread.

The code now works for slideshow banner and carousel auto layouts with no arrows.

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
  • 1 year later...
8 hours ago, ruthob93 said:

I'm sure I must have missed something in the installation of the code.

You missed installing the following at Settings > Developer Tools > Code Injection > HEADER from the install steps.

<x-twc-alraac data-click-interval-seconds="6" data-kill-upon-user-action="true"/>

There are other settings detailed in the Install steps that can be used instead of the above configuration. It all just depends on what you want to accomplish.

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

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.