Add scroll based animations to WordPress Gutenberg blocks.
Add scroll based animations to WordPress Gutenberg blocks.
PHP 5.6+ is recommended, WordPress 5.0+, and Gutenberg must be active.
Select Animated Block from the Layout Elements group and add any content blocks within it. Select an animation from the dropdown list or add your own custom CSS class. The selected animation or custom CSS class will be added to the block when the user scrolls to it.
Animated Block is a parent block (a container), nesting as many blocks as you want.
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.
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.
First release of the plugin.
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.
Updated enqueue function to work on WordPress 5.0
Updated/fixed animation previews in the editor.
Class “ab-end” is now added to elements when a CSS animation is completed.
Fixed jQuery warning
Updated for the latest WordPress version
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
Updated to the latest scrollClass.js
Reverted to milliseconds for duration and delay
Tested on the latest WP version
Added create-block package
Code cleanup