- View Demo – Password: abc
- Support: [email protected]
- Free Install
- Buy me a coffee

#1. Install Code
#1.1. First, click Add Section

#1.2. Next, choose Images > Choose Section with (i) icon or (auto layout) icon

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

#1.4. Enter this word: smooth-autoscroll-gallery
smooth-autoscroll-gallery

#1.5. and make sure you choose Grid: Simple

#1.6. Next, use code to Page Header Injection (page where you use Image Gallery Section)
- If you use Personal/Basic Plan and your plan doesn’t support Injection, see #4.1
<!-- 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>

#3. Customize
All style options here.

#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.

Then you can add Description text.

#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%)
}
}
#4. Other
#4.1. If you use Personal/Basic Plan and your plan doesn’t support Injection, you can add a Section under Gallery (or edit current page, page where you use Image Gallery Section) > Add 2 Blocks: Code Block + Embed Block

Next, add this code into Code Block
<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"/>

Next, add this code into Embed Block (Content > Code Snippet > Embed Data)
<script src="https://code.beaverhero.com/gallerysgrid/425v2smoothautoscroll.js"></script>
