=== MotionCraft Scroll Animations ===
Contributors: darshu1898
Tags: animation, scroll animation, elementor, gutenberg, smooth
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add smooth, scroll-triggered animations to WordPress with CSS classes or Gutenberg block controls.

== Description ==

MotionCraft Scroll Animations adds smooth, scroll-triggered animations to any WordPress site. Apply animations with CSS classes, data attributes, or the Gutenberg block editor sidebar.

= Features =

* 6 built-in animation presets (fade, slide, zoom)
* Gutenberg block editor integration with sidebar controls
* Works with Elementor via CSS classes in the Advanced tab
* Stagger animations for lists and grids
* Timeline groups for sequenced animations
* Custom animation builder (JSON-based)
* Conditional loading and mobile disable options
* Respects `prefers-reduced-motion`
* Developer hooks and filters for extending functionality

= Usage =

Add a CSS class to any element:

`anime-fade-up`

Or use a data attribute:

`data-anime="fade-up"`

The animation triggers automatically when the element scrolls into view.

= Custom Animations =

Define custom presets as JSON in Settings > MotionCraft Scroll Animations:

`{ "slide-rotate": { "opacity": 0, "translateX": -60, "rotate": -15 } }`

= Compatibility =

* Elementor (Free and Pro)
* Gutenberg Block Editor
* Any WordPress theme

= Performance =

* Deferred script loading
* Scroll-triggered animations via IntersectionObserver
* Optional mobile disable

= For Developers =

* Extendable animation list via `gmk_supported_animations` filter
* Public API: `window.GMK.refresh()` for dynamic content
* All assets bundled locally (no external CDN dependencies)

== Third-Party Services ==

This plugin includes the Anime.js library locally (MIT licensed).

**Anime.js**
* License: MIT
* Source: [animejs.com](https://animejs.com)
* Purpose: Provides the lightweight animation engine used by this plugin.
* Data transmitted: None. No external requests are made. All assets are bundled locally.
* MIT License: [https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT)

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin through the WordPress admin panel.
3. Add animation classes or use block editor controls.

== Frequently Asked Questions ==

= Does this plugin work with Elementor? =
Yes. Add animation classes in the Advanced tab of any Elementor widget.

= Do I need coding knowledge? =
No. Use CSS classes or the Gutenberg sidebar controls.

= Can I create custom animations? =
Yes. Use the JSON animation builder in the settings page.

= Will this slow down my website? =
Scripts load conditionally and are deferred.

= Is this better than Elementor animations? =
MotionCraft Scroll Animations provides smooth, performant scroll-triggered animations using Anime.js (MIT licensed). It's lightweight, GPL-compliant, and works with any theme or page builder.

== Screenshots ==

1. MotionCraft Settings Menu.
2. MotionCraft Enable Animations.
3. MotionCraft Disable Animations.
4. Add Custom Animations And Save All Settings.
5. Edit OR Delete Custom Animations.
6. Preview All Animations.
7. Animation Reference.
8. Data Attributes.
9. Gutenburge Animation.
10. Gutenburge Animation Using Settings.
11. Elementor Animation.

== Changelog ==

= 1.0.0 =
* Initial release.
* MotionCraft Scroll Animations provides smooth, scroll-triggered animations using Anime.js (MIT licensed).
* Gutenberg block editor integration with sidebar controls.
* Works with Elementor via CSS classes.
* Stagger animations for lists and grids.
* Timeline groups for sequenced animations.
* Custom animation builder (JSON-based).
* Conditional loading and mobile disable options.
* Respects `prefers-reduced-motion` for accessibility.
* Developer hooks and filters for extending functionality.

== Upgrade Notice ==

This is the initial release.
