跳到内容

Shift8 ScrollShot

v1.0.2

shift8 · 2026年5月11日 上架

Display tall screenshots inside a fixed-height scrolling frame.

正在使用
10 以下
评分
暂无
累计下载
454
最近更新
2026年5月13日
需要 WordPress 5.8+已测试到 6.9.12PHP 7.4+

贡献者

截图

Shift8 ScrollShot

Shift8 ScrollShot turns a tall image into a scrolling screenshot preview. Add the wrapper and image classes, then adjust the behavior with data attributes. It works in regular templates, block markup, and most page builders.

Features:

  • Automatic loop or scroll-linked movement
  • Configurable pause timing
  • Optional browser-style frame with traffic-light dots
  • Per-instance configuration via data attributes
  • Multiple independent instances on one page
  • Respects prefers-reduced-motion
  • No jQuery dependency

Usage

  1. Add a container element and give it the CSS class s8-scrollshot.
  2. Add an image inside that container and give the image the CSS class s8-scrollshot__image.
  3. (Optional) Add data attributes to the container or image to configure the behavior.

Data attributes can be placed on either the wrapper or the image. If the same attribute appears on both, the wrapper value takes priority.

Page Builder Setup

In visual builders such as Bricks or Elementor:

  1. Add a container or section element and apply the CSS class s8-scrollshot.
  2. Add an image element inside it and apply the CSS class s8-scrollshot__image.
  3. Use the builder’s custom attributes panel to add any data-* attributes.

Plain HTML Example

<div class="s8-scrollshot" data-mode="auto" data-duration="15000">
  <img class="s8-scrollshot__image" src="screenshot.png" alt="Screenshot">
</div><h3>Data Attributes</h3>

All configuration is done through HTML data attributes on the .s8-scrollshot container or the .s8-scrollshot__image element. Wrapper values take priority over image values.

  • data-mode – auto or scroll (default: auto)
  • data-duration – Total cycle time in milliseconds (default: 12000)
  • data-end-pause – Hold time at top and bottom in milliseconds (default: 1500)
  • data-pause-on-hover – true or false (default: true)
  • data-reverse – true or false, controls bounce direction (default: true)
  • data-frame – none or browser (default: none)
  • data-viewport-height – Visible area height in pixels (default: 700)
  • data-viewport-width – Viewport width in pixels, 0 for auto (default: 0)
  • data-easing – Any CSS easing string (default: ease-in-out)

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums