Linux 软件免费装
Banner图

Animated Blocks on Scroll

开发者 virgildia
更新时间 2026年5月11日 15:09
PHP版本: 7.0 及以上
WordPress版本: 6.9.1
版权: GPLv2 or later
版权网址: 版权信息

标签

gutenberg scroll animation reveal css-animations

下载

1.0.5 1.0.3 1.0.0 1.0.4 1.0.6 1.1.5 1.1.0 1.0.2 1.1.1 1.1.2 1.1.3 1.1.4 1.0.1

详情介绍:

Add scroll based animations to WordPress Gutenberg blocks. Features Settings

屏幕截图:

  • Animation list
  • Animated block container
  • Settings page for Animated Blocks
  • Testing animations

常见问题:

Installation

Go to your WordPress Admin -> Plugins -> Add New. Search for Gutenberg Animated Blocks. Install and Activate. You can also download this folder and add it into your plugins directory. "Animated Block" will be added to the Design block group.

What is Gutenberg?

Gutenberg is the name of the new block based editor introduced in WordPress 5. Gutenberg makes it easy to create content within the editor using blocks.

How do I add animation to a normal Gutenberg block?

Select any supported block, open the block inspector sidebar, and look for the Animations panel. Choose an effect such as fade, bounce, slide, or zoom, then save the post and view it on the front end.

Can I animate a group of blocks together?

Yes. Insert the Animated Block container from the Design block group and place any inner blocks inside it. The animation settings apply to the container as a whole.

Does this plugin work with scroll reveal and entrance animations?

Yes. The plugin adds CSS animation classes when the block reaches the configured scroll threshold, making it suitable for scroll reveal, fade in on scroll, slide in on scroll, zoom in on scroll, and similar entrance effects.

Can I use Animate.css classes or my own custom CSS animations?

Yes. The plugin includes a list of predefined animation classes and also allows you to enter a custom class name. You can pair that custom class with your own CSS animation rules in your theme or another plugin.

How does delay work?

Delay controls how long the plugin waits before adding the animation classes after the block reaches the trigger point in the viewport. Duration controls how long the CSS animation itself runs.

What does threshold mean?

Threshold is the percentage of the block that must enter the viewport before the animation starts. Lower values trigger earlier, while higher values wait for more of the block to become visible.

Can I offset animations for a fixed header or sticky navigation?

Yes. Use the Offset Top field in the block's Advanced settings to account for fixed headers, sticky menus, or other content pinned to the top of the page.

Can I disable animation controls for regular blocks?

Yes. Go to Settings > Animated Blocks and disable "Show animation controls on all blocks". Existing blocks with saved animation settings will keep their controls until those settings are removed.

What class is added when the animation has finished?

The class name "ab-animation-end" is added after the CSS animation ends. You can target that class in custom CSS if you need different end-state styling.

更新日志:

1.0.0 First release of the plugin. 1.0.3 Animation settings in individual blocks by extending the block API is no longer supported in the plugin. The InnerBlocks component was implemented, enabling nested block content and more flexibility. Select "Animated Block" from the "Layout Elements" group and add whatever content blocks you'd like. Select Animated Block to see animation settings. 1.0.4 Updated enqueue function to work on WordPress 5.0 1.0.5 Updated/fixed animation previews in the editor. Class "ab-end" is now added to elements when a CSS animation is completed. 1.0.6 Fixed jQuery warning Updated for the latest WordPress version 1.1.0 Tested for WordPress 5.9 Added block.json Added animation duration option Added offset option (available in the block's Advanced settings) Fixed animation opacity issues Renamed class ab-hidden to ab-is-hidden Renamed class ab-end to ab-animation-end 1.1.1 Updated to the latest scrollClass.js Reverted to milliseconds for duration and delay 1.1.2 Tested on the latest WP version 1.1.3 Refactor block asset enqueue flow, add class guard, and synchronize version metadata 1.1.4 Use editor-canvas block assets hook for animate.css 1.1.5 Added animation controls for regular Gutenberg blocks Added a WordPress settings page at Settings > Animated Blocks Added the "Show animation controls on all blocks" option Kept animation controls visible for blocks with existing saved animation data when global controls are disabled Added a None animation option and a quick action to clear all animation settings from a block Added a replay button next to the animation dropdown in the editor