Blog Swap Image on Hover

Description

#1. Install Code

#1.1. Click Gear icon on Blog Page

06.26c29v9 Blog Post Print Text

#1.2. Click Advanced > Page Header Code Injection

08.26c06v2 Blog Page Film Grain Animation

#1.3. Paste this code

  • If your site is Personal/Basic Plan and it doesn’t support Injection, see #3.1
<!-- 08.26c30v7 Blog Swap Image on Hover -->
<script>
window.BlogHoverSwapConfig = {
  itemSelector: 'article.blog-item',
  imageWrapperSelector: '.image-wrapper',
  markerText: '#hover#',
  hideMarkerImage: true,
  fadeDuration: 400,
  fadeEasing: 'ease',
  enableOnTouch: false,
  cacheMinutes: 10,
  concurrency: 5,
  imageWidth: ''
};
</script>
<script src="https://code.beaverhero.com/blogpage/0826c30v7blogswapimghover.js"></script>

08.26c30v7 Blog Swap Image on Hover

#1.4. Next, edit blog item > Add an Image Block in bottom of blog post > at ALT > Enter text with symbol: #hover#

#hover#

08.26c30v7 Blog Swap Image on Hover

#2. Customize

nothing now

#3. Other

#3.1. If you use Personal/Basic Plan and your plan doesn’t support Injection, you can edit Site Footer > Add a Markdown Block

04.26c10v2 Header Sound Icon

Add this code into Markdown

<script>
window.BlogHoverSwapConfig = {
  itemSelector: 'article.blog-item',
  imageWrapperSelector: '.image-wrapper',
  markerText: '#hover#',
  hideMarkerImage: true,
  fadeDuration: 400,
  fadeEasing: 'ease',
  enableOnTouch: false,
  cacheMinutes: 10,
  concurrency: 5,
  imageWidth: ''
};
</script>
<script src="https://code.beaverhero.com/blogpage/0826c30v7blogswapimghover.js"></script>

08.26c30v7 Blog Swap Image on Hover

Buy me a coffee