=== Piffling Backgrounds ===
Contributors: applestalk
Tags: animated background, background, particles, hero, canvas
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Live animated backgrounds for any section of your site. 28 styles in your own colours, about 5KB on a typical page.

== Description ==

Piffling Backgrounds puts a live, animated background behind any section of your site: flowing streaks, glitter, aurora, silk, lava, circuit boards, drifting stars and more. Every style is drawn fresh in the browser, so it stays sharp on any screen and weighs a fraction of a background video.

* **28 styles, all free**, each in your own colours.
* **Light.** About 5KB on a typical page. The loader fetches only the style the page uses.
* **Works with any builder.** Add a CSS class to a section in Elementor, Divi, WPBakery, YOOtheme, the block editor or your theme. Or use the Piffling background block, or wrap content in a shortcode.
* **Kind to visitors.** Each background pauses when it scrolls out of view, runs lighter on phones, and shows a still frame to anyone who has asked their device to reduce motion.
* **Private.** Nothing loads from other sites. No tracking, no cookies, no accounts.

See every style running live at [piffling.com/backgrounds](https://piffling.com/backgrounds/).

= Styles =

Flow, Dot wave, Dot field, Pixel shimmer, Grid warp, Rapture, Aurora, Silk, Swirl, Vortex, Stars, Gradient mesh, Shift, Grain gradient, Lava, Circuit board, Pipeline, Snow, Fireflies, Hexagon grid, Bokeh, Underwater, Ripples, Particle text, Network, Flowing lines, Contour lines and Data rain.

= Piffling Backgrounds Pro =

Everything above is free for good. If you want more, Piffling Backgrounds Pro is a one-off £9.99 add-on from [piffling.com](https://piffling.com/backgrounds/) that adds:

* Fine-tuning: speed, density, size, brightness, edge fade and each style's own options.
* Your logo, drawn in particles.
* As many saved backgrounds as you like, so each page can have its own.
* Mouse interaction and phone performance settings.
* Use on unlimited sites.

The free plugin works fully without it.

== Installation ==

1. Install and activate the plugin.
2. Go to **Appearance > Piffling Backgrounds**, pick a style, set your colours and press **Save background**.
3. Put it on your site in whichever way suits you:
    * Add the CSS class shown on that screen (for example `ffbg-hero`) to any section, row or column.
    * In the block editor, add the **Piffling background** block and put your content inside it.
    * Wrap content in the shortcode: `[piffling_bg]Your content[/piffling_bg]`. Add `height="400px"` for a minimum height.

== Frequently Asked Questions ==

= Will it slow my site down? =

A page with one background loads about 5KB of script. Pages without a background load less than 1KB, and nothing at all until you save a background. Backgrounds pause when they scroll out of view.

= Can I put text and buttons on top? =

Yes. The background sits behind your content, which stays fully clickable.

= Does it work with my page builder? =

If your builder lets you add a CSS class to a section, yes. It has been tested with the block editor, classic themes, YOOtheme and Elementor, including the YOOtheme and Elementor live builders.

= What about visitors who prefer less motion? =

If a visitor has turned on "reduce motion" on their device, they see a still frame instead of the animation.

= Does it use cookies or contact other sites? =

No. Everything is drawn in the visitor's browser from files in the plugin. Nothing is loaded from elsewhere and nothing is tracked.

= What happens when I delete the plugin? =

Deactivating keeps your background. Deleting the plugin removes everything it stored.

== Screenshots ==

1. Pick a style, set your colours and watch the preview update. All 28 styles are there to try.
2. The Piffling background block in the block editor, with content inside it.
3. Rapture behind a hero section.
4. Aurora behind a hero section.
5. Circuit board behind a hero section.
6. The same background added with a CSS class and with the shortcode.

== Changelog ==

= 1.0.7 =
* Swirl keeps its scattered look instead of gathering into strings.

= 1.0.6 =
* New name: Piffling Backgrounds (was FlowField BG).
* The Glitter style is now called Rapture.
* The shortcode is now [piffling_bg].

= 1.0.5 =
* Glow styles now keep their glow in older Safari versions.

= 1.0.4 =
* First public release.

== Upgrade Notice ==

= 1.0.7 =
Swirl keeps its scattered look.

= 1.0.6 =
New name, and the shortcode is now [piffling_bg].

= 1.0.5 =
Better glow in older Safari versions.
