From 695c8a733b8e2c9b40f6aac472dbdfb8848a4a37 Mon Sep 17 00:00:00 2001 From: websevendev Date: Tue, 18 Jan 2022 22:02:18 +0200 Subject: [PATCH] 1.0.4 --- animations-for-blocks.php | 2 +- readme.txt | 7 +++++-- src/AnimatedBlockListBlock.js | 2 +- src/style.scss | 9 +-------- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/animations-for-blocks.php b/animations-for-blocks.php index 59a5cb9..5ea888d 100644 --- a/animations-for-blocks.php +++ b/animations-for-blocks.php @@ -3,7 +3,7 @@ * Plugin Name: Animations for Blocks * Plugin URI: https://wordpress.org/plugins/animations-for-blocks * Description: Allows to add animations to Gutenberg blocks on scroll. - * Version: 1.0.3 + * Version: 1.0.4 * Author: websevendev * Author URI: https://chap.website/author/websevendev */ diff --git a/readme.txt b/readme.txt index 0f3d8aa..ae3e1ea 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: websevendev Tags: gutenberg, block, animation, animate, scroll, fade, flip, slide, zoom, move Requires at least: 5.6 -Tested up to: 5.8 +Tested up to: 5.9 Requires PHP: 5.4 -Stable tag: 1.0.3 +Stable tag: 1.0.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -64,6 +64,9 @@ When none of the animated elements show up on your site it's possibly due to a J == Changelog == += 1.0.4 = +* Update block anchor selector. + = 1.0.3 = * Use generated version number for AOS library. diff --git a/src/AnimatedBlockListBlock.js b/src/AnimatedBlockListBlock.js index 6e81e66..e87db85 100644 --- a/src/AnimatedBlockListBlock.js +++ b/src/AnimatedBlockListBlock.js @@ -179,7 +179,7 @@ export default class AnimatedBlockListBlock extends Component { ...wrapperProps, ...animationProps, 'data-aos-id': this.props.clientId, - 'data-aos-anchor': '.editor-block-list__block-edit', + 'data-aos-anchor': '.block-editor-block-list__block', }; } } diff --git a/src/style.scss b/src/style.scss index 041465a..3b6b6a3 100644 --- a/src/style.scss +++ b/src/style.scss @@ -20,16 +20,9 @@ /** * Hide block toolbar during animation. */ - .editor-block-toolbar { + .block-editor-block-toolbar { display: none !important; } - - /** - * Hide block outline during animation. - */ - .editor-block-list__block-edit:before { - outline-color: rgba(0, 0, 0, 0) !important; - } } /**