=== Rouergue Creation Slider Native Cover Block ===
Contributors: rock4temps
Tags: cover block, slider, slideshow, gutenberg
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.txt

Add responsive "slider" and "slideshow" styles primarily using CSS to the native WordPress Banner block.

== Description ==

This plugin adds two alternative styles ("Slider" and "Slideshow") to the native WordPress **Cover** block (Gutenberg).
The slider relies on modern **native CSS** features (*scroll-snap*, *overflow*, *anchor-name*), complemented by a very lightweight script for keyboard navigation, touch support, and automatic scrolling in slideshow mode.

✅ Compatible with classic themes and block themes

### Features:

- **"Slider" & "Slideshow" Styles**: Select the desired style directly in the **Styles** panel of the native Cover block.
- **Automatic Scrolling (Slideshow)**: Smooth fade transitions every 5 seconds with automatic pause on mouse hover.
- **Smooth Navigation**: Native scroll buttons provided by the browser, mobile touch gesture support (swipe), and endless looping.
- **Keyboard Navigation**: As soon as the slider receives focus, navigate easily using the **Left Arrow (←)** and **Right Arrow (→)** keys.
- **Lightweight & Optimized**: Ultra-lightweight CSS, with JS scripts loaded only on pages containing a Cover block.

== How to use ==

1. Install and activate the Rouergue Creation Slider Native Cover Block plugin.
2. Open a page or post in the Gutenberg editor.
3. In the block editor (Gutenberg), insert a parent **Cover** block, then add your child **Cover** blocks inside it (which will serve as slides).
4. **Setting Recommendation**: For a harmonious and uniform visual appearance, apply the same **Aspect Ratio** or **Minimum Height** setting (e.g., 500px) to all your Cover blocks (parent and children).
5. In the **Styles** panel of the root block settings, select the **Slider** or **Slideshow** style.
6. View the **Banner** block now transformed into a **Slider** on the front end.

== Installation ==

1. From your site's dashboard, go to **Plugins Add New**.
2. Search for « Rouergue Creation Slider Native Cover Block ».
3. Click **Install**, then **Activate**.

== Frequently Asked Questions ==

= Is it compatible with all browsers? =
The plugin relies on recent CSS Overflow 5 specifications. It is fully supported by **Chrome, Edge, Opera, and Safari**.
For the **Firefox** browser, **only the Slideshow style** is supported.

= Does the plugin use JavaScript? =
Yes, a **very lightweight JavaScript script** is used to extend CSS capabilities:
* Keyboard navigation using arrow keys (← / →).
* Automatic scrolling every 5s (Slideshow mode) with pause on hover.
* Improved touch navigation on mobile and loop management.

The visual rendering and layout rely entirely on **native CSS**.

= How does keyboard navigation work? =
When the slider or one of its buttons receives focus:
* **Right Arrow (→)**: Move to the next slide.
* **Left Arrow (←)**: Move to the previous slide.
A loop mode allows jumping from the last slide to the first (and vice versa) with a smooth fade transition.

= Why should I set an identical height or aspect ratio for the slides? =
To prevent the container from abruptly resizing the page layout when switching between slides, 
it is strongly advised to set an identical **Aspect Ratio** or **Minimum Height** on the parent block and all of its child blocks.

== Screenshots ==

1. "Slider" or "Slideshow" style structure in the Gutenberg editor.
2. Selection of the "Slider" or "Slideshow" style in the Cover block Styles panel.
3. "SIZE PROPORTION" or "MINIMUM HEIGHT" selection in the Dimensions panel for Cover blocks.

==  Demo == 

Discover the plugin in action on our [Demo Site](https://rouerguecreation.fr/demo-slider-native-cover-block/).

==  Translations == 

- English


== Discover our other plugins ==

🔹 [Editor Custom Color Palette](https://wordpress.org/plugins/editor-custom-color-palette/)
🔹 [Easy Custom Event Tickets](https://wordpress.org/plugins/custom-event-tickets/)
🔹 [Filter Bar Custom Post Type](https://wordpress.org/plugins/filter-bar-custom-post-type/)
🔹 [Slider Galerie Native Responsive](https://wordpress.org/plugins/slider-galerie-native-responsive/)
🔹 [Rouergue Creation Top Notice Bar](https://wordpress.org/plugins/rouergue-creation-top-notice-bar/)
🔹 [Rouergue Creation Events Sidebar](https://wordpress.org/plugins/rouergue-creation-sidebar-embed/)
🔹 [Rouergue Creation Carousel Style Query Loop](https://wordpress.org/plugins/rouergue-creation-carousel-style-query-loop/)

== Changelog ==

= 1.0 =

- Initial release of the plugin.
