{"id":13759311,"url":"https://github.com/liip/animate-blocks-wordpress-plugin","last_synced_at":"2026-04-04T16:44:32.169Z","repository":{"id":34307240,"uuid":"176666291","full_name":"liip/animate-blocks-wordpress-plugin","owner":"liip","description":"Animate Gutenberg blocks plugin for WordPress","archived":false,"fork":false,"pushed_at":"2022-12-08T18:15:42.000Z","size":5312,"stargazers_count":17,"open_issues_count":13,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-08T17:08:06.433Z","etag":null,"topics":["gutenberg","gutenberg-blocks","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-20T06:08:51.000Z","updated_at":"2025-01-28T16:08:25.000Z","dependencies_parsed_at":"2023-01-15T06:15:48.572Z","dependency_job_id":null,"html_url":"https://github.com/liip/animate-blocks-wordpress-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liip%2Fanimate-blocks-wordpress-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liip%2Fanimate-blocks-wordpress-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liip%2Fanimate-blocks-wordpress-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liip%2Fanimate-blocks-wordpress-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liip","download_url":"https://codeload.github.com/liip/animate-blocks-wordpress-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253397018,"owners_count":21901973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gutenberg","gutenberg-blocks","wordpress","wordpress-plugin"],"created_at":"2024-08-03T13:00:50.637Z","updated_at":"2026-04-04T16:44:32.161Z","avatar_url":"https://github.com/liip.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Animate Blocks - Animate Gutenberg blocks plugin for WordPress\n\n[![Build Status](https://travis-ci.org/liip/animate-blocks-wordpress-plugin.svg?branch=master)](https://travis-ci.org/liip/animate-blocks-wordpress-plugin)\n\nAnimate Gutenberg blocks when they scroll into view.\n\n* Works with all existing Gutenberg blocks\n* Choose from 27 different animations\n* Configure animation with custom delays, offsets and durations\n* Based on [AOS Animate On Scroll Library](http://michalsnik.github.io/aos/)\n\n![Animate Blocks Demo](https://raw.githubusercontent.com/liip/animate-blocks-wordpress-plugin/master/assets/github/animate-blocks-demo.gif)\n\n## JavaScript Filters\n\n### animateBlocks.defaultOptions\n\nChange default options.\n\n#### Usage:\n\n```javascript\nfunction myDefaultOptions( defaultOptions ) {\n    // Change default animation to 'flip-up'\n    defaultOptions.animation = 'flip-up';\n    \n    return defaultOptions;\n}\nwp.hooks.addFilter( 'animateBlocks.defaultOptions', 'myplugin/animate-blocks/defaultOptions', myDefaultOptions );\n```\n\n#### Parameters:\n\n* `defaultOptions` (object) Object with the following attributes\n    * `animation` (string)\n    * `offset` (number)\n    * `delay` (number)\n    * `duration` (number)\n    * `easing` (string)\n    * `once` (boolean)\n    * `mirror` (boolean)\n    * `anchorPlacement` (string)\n\n### animateBlocks.anchorPlacementOptions\n\nModify anchor placement options.\n\n#### Usage:\n\n```javascript\nfunction myAnchorPlacementOptions( anchorPlacementOptions ) {\n    // Modify anchorPlacementOptions here\n    \n    return anchorPlacementOptions;\n}\nwp.hooks.addFilter( 'animateBlocks.anchorPlacementOptions', 'myplugin/animate-blocks/anchorPlacementOptions', myAnchorPlacementOptions );\n```\n\n#### Parameters:\n\n* `anchorPlacementOptions` (array) Array with anchor placement options\n\n### animateBlocks.animationOptions\n\nModify animation options.\n\n#### Usage:\n\n```javascript\nfunction myAnimationOptions( animationOptions ) {\n    // Modify animationOptions here\n    \n    return animationOptions;\n}\nwp.hooks.addFilter( 'animateBlocks.animationOptions', 'myplugin/animate-blocks/animationOptions', myAnimationOptions );\n```\n\n#### Parameters:\n\n* `animationOptions` (array) Array with animation options\n\n### animateBlocks.easingOptions\n\nModify easing options.\n\n#### Usage:\n\n```javascript\nfunction myEasingOptions( easingOptions ) {\n    // Modify easingOptions here\n    \n    return easingOptions;\n}\nwp.hooks.addFilter( 'animateBlocks.easingOptions', 'myplugin/animate-blocks/easingOptions', myEasingOptions );\n```\n\n#### Parameters:\n\n* `easingOptions` (array) Array with easing options\n\n\n## PHP Filters\n\n### animate_blocks_load_aos\n\nEnable or disable loading of AOS library.\n\n#### Usage:\n\n```php\nfunction my_plugin_disable_load_aos( $load_aos ) {\n    $load_aos = false;\n    return $load_aos;\n}\nadd_filter( 'animate_blocks_load_aos', 'my_plugin_disable_load_aos' );\n```\n\n#### Parameters:\n\n* `$enable_aos` (boolean) If true AOS will be loaded by the plugin.\n\n## Developer information\n\n### Installation\n\n1. Clone this repo\n\n1. Install composer dependencies\n\n    ```\n    $ curl -s https://getcomposer.org/installer | php\n    $ php composer.phar install\n    $ vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs\n    ```\n\n1. Install Node dependencies\n\n    ```\n    $ npm install\n    ```\n\n### Compile assets\n\nThis project was bootstrapped with [Create Guten Block](https://github.com/ahmadawais/create-guten-block).\n\n#### `npm start`\n- Use to compile and run the block in development mode.\n- Watches for any changes and reports back any errors in your code.\n\n#### `npm run build`\n- Use to build production code for your block inside `dist` folder.\n- Runs once and reports back the gzip file sizes of the produced code.\n\n#### `npm run eject`\n- Use to eject your plugin out of `create-guten-block`.\n- Provides all the configurations so you can customize the project as you want.\n- It's a one-way street, `eject` and you have to maintain everything yourself.\n- You don't normally have to `eject` a project because by ejecting you lose the connection with `create-guten-block` and from there onwards you have to update and maintain all the dependencies on your own.\n\n### Extract labels\n\nTo extract the labels and generate the `languages/animate-blocks.pot` file run the following command:\n\n```\n$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar\n$ php wp-cli.phar i18n make-pot . languages/animate-blocks.pot\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliip%2Fanimate-blocks-wordpress-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliip%2Fanimate-blocks-wordpress-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliip%2Fanimate-blocks-wordpress-plugin/lists"}