(Free) Gallery Grid Smooth Autoscroll

Gallery grid smooth autoscroll 1

#1. Install Code

#1.1. Business Plan/higher

First, click Gear icon on page where you want to add Gallery Grid Smooth Autoscroll.

Gallery grid smooth autoscroll 2

Next, click Advanced > Paste this code to right box.

<!-- Gallery Grid Smooth Autoscroll @tuanphan -->
<style>
  :root {
   	 --gallery-scroll-padding: 2em 0;
      --tp-slide-width: 300px;
      --tp-aspect-ratio: 4 / 3;
      --tp-gap: 40px;
      --tp-animation-duration: 40s;
      --tp-border-radius: 8px;
      --tp-caption-font-size: 16px;
      --tp-caption-color: #333;
   	 --gap-caption-img: 12px;
  }
</style>
<link rel="stylesheet" href="https://code.beaverhero.com/gallerysgrid/425v2smoothautoscroll.css"/>
<script src="https://code.beaverhero.com/gallerysgrid/425v2smoothautoscroll.js"></script>

(free) gallery grid smooth autoscroll 1

#1.2. Personal Plan/Basic Plan

Add a block under Gallery

(free) gallery grid smooth autoscroll 2

Choose Markdown

(free) gallery grid smooth autoscroll 3

Paste this code into Markdown

<link rel="stylesheet" href="https://code.beaverhero.com/gallerysgrid/425v2smoothautoscroll.css"/>
<script src="https://code.beaverhero.com/gallerysgrid/425v2smoothautoscroll.js"></script>

(free) gallery grid smooth autoscroll 5

and this code into Custom CSS box

:root {
  	--gallery-scroll-padding: 2em 0;
     --tp-slide-width: 300px;
     --tp-aspect-ratio: 4 / 3;
     --tp-gap: 40px;
     --tp-animation-duration: 40s;
     --tp-border-radius: 8px;
     --tp-caption-font-size: 16px;
     --tp-caption-color: #333;
  	--gap-caption-img: 12px;
 }

(free) gallery grid smooth autoscroll 4

#2. Usage

First, click Add Section

Gallery grid smooth autoscroll 4

Next, choose Images > Choose Section with (i) icon.

Gallery grid smooth autoscroll 5

Next, hover on top right of section > Click Edit Section

Gallery grid smooth autoscroll 6

Enter this word: smooth-autoscroll-gallery

smooth-autoscroll-gallery

Gallery grid smooth autoscroll 7

and make sure you choose Grid: Simple

Gallery grid smooth autoscroll 8

#3. Customize

All style options here.

Gallery grid smooth autoscroll 9

If you use Personal/Basic Plan, you can see these options in Custom CSS

(free) gallery grid smooth autoscroll 4

#3.1. To change space above/below gallery scroll, change this.

--gallery-scroll-padding: 2em 0;

#3.2. To change image width, change this.

--tp-slide-width: 300px;

#3.3. to change image ratio, change this.

--tp-aspect-ratio: 4 / 3;

#3.4. To change gap between images, change this.

--tp-gap: 40px;

#3.5. To change gallery scroll speed, change this.

--tp-animation-duration: 40s;

#3.6. To rounded corners of image, change this.

--tp-border-radius: 8px;

#3.7. To change text style under image, change these.

--tp-caption-font-size: 16px;
      --tp-caption-color: #333;

#3.8. To change space between text – image, change this.

--gap-caption-img: 12px;

#3.9. To add text under Image, you can enable this option.

Gallery grid smooth autoscroll 10

Then you can add Description text.

Gallery grid smooth autoscroll 11

#3.10. To add second gallery with opposite direction, you can do these

First, add a second gallery with anchor link

smooth-autoscroll-gallery2

Next, use this code to Custom CSS

#smooth-autoscroll-gallery2 .tp-slider-track{
    animation: tp-scroll2 var(--tp-animation-duration) linear infinite !important;
}
@keyframes tp-scroll2 {
    from {
        transform: translateX(-50%)
    }

    to {
        transform: translateX(0%)
    }
}

 

Buy me a coffee