# animated-blocks/1.1.1/plugin.php

Animated Blocks on Scroll, version 1.1.1. 36 lines.

- Page: https://pluginprobe.com/plugins/animated-blocks/1.1.1/code/plugin.php
- Raw: https://pluginprobe.com/plugins/animated-blocks/1.1.1/raw/plugin.php
- Modified: 2022-02-03T06:56:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/animated-blocks/1.1.1/code/plugin.php#L10-L20`.

```php
<?php
/**
 * Plugin Name: Animated Blocks on Scroll
 * Plugin URI: https://wordpress.org/plugins/animated-blocks/
 * Description: Add scroll based animations to Gutenberg blocks.
 * Author: Virgiliu Diaconu
 * Author URI: http://virgiliudiaconu.com/
 * Version: 1.1.1
 * License: GPLv2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: animated-blocks
 *
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Directory path of this plugin
 *
 * @var string
 */
define( 'AB_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );

/**
 * Block Initializer.
 */
require_once plugin_dir_path( __FILE__ ) . 'init.php';

/**
 * Register Block.
 */
require_once plugin_dir_path( __FILE__ ) . 'block/index.php';

```
