Linux 软件免费装
Banner图

Scroll Indicator

开发者 dhansondesigns
更新时间 2026年9月15日 03:08
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

block gutenberg scroll animation indicator

下载

1.0.1 1.0.2

详情介绍:

Scroll Indicator adds a focused block for landing pages, hero sections, editorial layouts, and long-form content. It gives visitors a clear visual cue that there is more to explore below the fold. Choose from multiple icon styles, adjust the size, use native WordPress text color controls, add optional helper text, and let visitors click or keyboard-activate the indicator to move smoothly down the page. The block is intentionally lightweight. Animations are handled with CSS, respect reduced-motion preferences, and the front-end script is limited to click-to-scroll and automatic hide-on-scroll behavior. Key Features Development The human-readable source for the compiled JavaScript and CSS is included in this plugin package under src/. The generated files in compiled/ are built from src/index.js, src/view.js, and the SCSS files in src/ using @wordpress/scripts. To rebuild them, run:
  1. npm install
  2. npm run build
The public source repository is maintained at https://github.com/dhanson-wp/scroll-indicator. Good For

安装:

  1. Upload the scroll-indicator folder to the /wp-content/plugins/ directory, or install it through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Open the block editor and add the Scroll Indicator block.
  4. Choose an icon style, size, color, and optional label.

屏幕截图:

  • Five icon styles: mouse, arrow, chevron, dots, and hand.
  • Four preset sizes plus any custom CSS size.
  • Icons and labels follow the block's text color and support custom text.
  • Absolute positioning pins the indicator anywhere inside a Cover or Group.
  • Accessible by default: a real button, reduced-motion aware, keyboard friendly.
  • Block settings in the editor sidebar: icon type, size, label, and position.
  • Finding the block in the inserter.

常见问题:

Does this plugin require a JavaScript animation library?

No. Animations are handled with CSS. The front-end script only powers click-to-scroll and automatic hide-on-scroll behavior.

Can I change the icon color?

Yes. The block uses WordPress core text color support, so colors can be managed through the block editor.

Does it support reduced motion preferences?

Yes. The animated effects only run when the visitor has not requested reduced motion.

Is the indicator keyboard accessible?

Yes. The front-end indicator is saved as a keyboard-focusable button-like control with an accessible label.

Will the block work without JavaScript?

The icon and optional text still render without JavaScript. JavaScript is only needed for click-to-scroll and automatic hide-on-scroll behavior.

更新日志:

1.0.2 1.0.1 1.0.0