11.26c10v01 Ken Burns Effect to Banner Slideshow

Description

  • Want a hero slideshow where only the images change while your heading stays put? This code keeps the first slide’s text fixed, adds a slow zoom (Ken Burns) to each image, and autoplays with a pause button
  • view demo – pass: abc
  • buy me a coffee

04.26c30v2 Slideshow with Same Text Autoscroll

#1. Install Code

#1.1. First, add a Section > Choose Team > Choose Section with icon in top right

11 26c08v5

#1.2. Next, hover on top right of section > Click Edit Content

04.26c30v2 Slideshow with Same Text Autoscroll

Choose Banner Slideshow

04.26c30v2 Slideshow with Same Text Autoscroll

#1.3. At Elements, you can enable element what you want

04.26c30v2 Slideshow with Same Text Autoscroll

#1.4. At Content, add your desired image/text

04.26c30v2 Slideshow with Same Text Autoscroll

#1.5. Note: add Text/Button to FIRST ITEM only. Code will use this for all slideshow images

04.26c30v2 Slideshow with Same Text Autoscroll

#1.6. Make sure you enabled Arrows (we can disable it with code in #2. Customize, if you want)

04.26c30v2 Slideshow with Same Text Autoscroll

#1.7. Hover on top right of slideshow > Click EDIT SECTION

04.26c30v2 Slideshow with Same Text Autoscroll

at Format > Anchor Link > enter word: ken-burn

Ken burn

#1.7. Hover on Page where you use Slideshow > Click Gear icon

04.26c30v2 Slideshow with Same Text Autoscroll

#1.8. Click Advanced > Paste this code

  • If you use Personal Plan/Basic Plan and your plan doesn’t support Injection, see #3.1.
<!-- 11.26c10v01 Ken Burns Effect to Banner Slideshow -->
<script>
window.SlideshowSameTextConfig = {
  selector: 'section[id*="ken-burn"]',
  moveText: true,
  arrows: false,
  autoScroll: true,
  autoScrollSeconds: 5,
  overlay: false,
  overlayColor: 'rgba(255,255,255,0.5)',
  textBackground: false,
  textBackgroundColor: '',
  textBackgroundPadding: '20px',
  clickable: true,
  imageLink: true,
  hideButton: true,
  pause: true,
  pauseColor: '#fff',
  pauseSize: '50px',
  pauseRight: '10px',
  pauseBottom: '10px',
  changeArrowStyle: true,
  fadeZoom: true,
  transitionType: 'slideDown',
  transitionSeconds: 0.5,
  zoomScale: 1.3,
  zoomSeconds: 20,
  zoomDirection: 'in'
};
</script>
<script src="https://code.beaverhero.com/listbannerslideshow/1126c10v01kenburnslideshow.js"></script>

Ken burn02

#2. Customize

#2.1. To enable arrows, change this line to true

arrows: false,

#2.2. To disable/enable autoscroll, change this

autoScroll: true,
  autoScrollSeconds: 5,

#2.3. To change overlay color over slideshow image, change this

overlayColor: 'rgba(255,255,255,0.5)',

if you want to remove overlay color, set it transparent

overlayColor: 'transparent',

#2.4. To change pause icon style, change this

pauseColor: '#fff',
  pauseSize: '50px',
  pauseRight: '10px',
  pauseBottom: '10px',

#2.5. To show button, change this to false

hideButton: true,

#2.6. To hide Pause icon, change this line to false

pause: true,

#2.7. Slideshow offer 2 types of transition: fade or slideDown, you can edit this

transitionType: 'slideDown',

#2.8. To adjust transition/zoom scale, change this

transitionSeconds: 0.5,
  zoomScale: 1.3,
  zoomSeconds: 20,

#3. Other

#3.1. If you use Personal/Basic Plan and your plan doesn’t support Injection. You can edit Page (page where you use Slideshow) > Add a Block (anywhere) > Choose Embed > Code Snippet > Embed Data > Paste code in step #1.8

 

Buy me a coffee