Animated Blocks

描述

Add scroll-based CSS3 animations to Gutenberg blocks.

See how it works: video demo

Features

  • Choose from 76 cross-browser CSS3 animations or add your own
  • Preview animations in the editor
  • Adjust the animation delay, scroll threshold, and visibility of blocks
  • Based on Gutenberg’s InnerBlocks component

Settings

  • Animation Delay: How many milliseconds to wait before animating the element.
  • Threshold: Add animation when x% of the element enters the screen.
  • Set to 0 opacity: Hide the element when the page loads. The option works for elements transitioning to 100% opacity through CSS.

Requirements

PHP 5.6+ is recommended, WordPress 5.0+, and Gutenberg must be active.

Documentation

Select Animated Block from the Layout Elements group and add whatever content blocks you’d like in it. Animation settings will appear in the block inspector when selecting Animated Block. 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 end user scrolls to it.

Animated Block is a parent block (a container), nesting as many blocks as you want.

Additional documentation can be found on Github.

Contribute

Join the project on Github.

This plugin was bootstrapped with Create Guten Block. The Animate.css library is used for CSS3 animations.

螢幕截圖

  • Animation Settings in the block inspector
  • Animation list
  • Block

常見問題

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 your blocks in the Layout Elements group.

What is Gutenberg?

「Gutenberg」 is the name of the project to create a new editor experience for WordPress. The goal is to create a new post and page editing experience that makes it easy for anyone to create rich post layouts.

評價

閱讀全部2個評價

貢獻者及開發者

“Animated Blocks” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Animated Blocks 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

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