Scattered instant photos in WordPress
Polaroid-style photos laid askew on the page, which straighten and lift on hover, with handwritten captions.
Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.
This component also comes in
The code in WordPress
<?php
/**
* Plugin Name: Forge, Photos instantanées éparpillées
* Description: Des photos façon Polaroid posées de travers sur la page, qui se redressent et se soulèvent au survol, avec légende manuscrite. Ajoute la composition « Photos instantanées éparpillées » à l'éditeur de blocs.
* Version: 1.0.0
* Requires at least: 6.6
* Requires PHP: 8.1
* Author: Forge
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: forge-effet-polaroids-eparpilles
*<!-- wp:group {"tagName": "section", "className": "efpe", "layout": {"type": "default"}} -->
<section class="wp-block-group efpe"><!-- wp:group {"className": "efpe-head", "layout": {"type": "default"}} -->
<div class="wp-block-group efpe-head"><!-- wp:paragraph {"className": "efpe-eyebrow"} -->
<p class="efpe-eyebrow">Gîtes de la Côte d’Émeraude · Dinard</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "efpe-title", "anchor": "efpe-titre"} -->
<h2 class="wp-block-heading efpe-title" id="efpe-titre">Vos vacances en Bretagne, vues par nos hôtes</h2>
<!-- /wp:heading --></div>
<!-- /wp:group -->
<!-- wp:group {"className": "efpe-table", "layout": {"type": "default"}} -->
<div class="wp-block-group efpe-table"><!-- wp:html -->
<figure class="efpe-photo" style="--efpe-r: -7deg">:root {
--efpe-bg: #f3ede4;
--efpe-text: #2a2119;
--efpe-muted: #5b4d40;
--efpe-paper: #fffdf8;
--efpe-ink: #3b2f25;
--efpe-accent: #0f5c6e;
--efpe-accent-text: #ffffff;
--demo-effet-polaroids-eparpilles-bg: #ebe3d7;
--demo-effet-polaroids-eparpilles-text: #2a2119;
}
Free component: copy it freely, including for commercial projects.
Other visual effects components in WordPress
Visual effects components in WordPress
A large heading whose words turn from grey to ink as the page scrolls, then whose key phrases get a marker stroke, in pure CSS with a readable fallback.
- Tailwind
- React
- CSS
- WordPress

Cards that fade in as they enter the screen, one after another in each row, without a line of JavaScript and with a static fallback.
- Tailwind
- React
- CSS
- WordPress

A translucent card with a saturated blur whose sharper edge refracts the colourful shapes drifting behind it, with an opaque fallback when transparency is reduced.
- Tailwind
- React
- CSS
- WordPress

A help block shaped like a conversation: bubbles, three animated typing dots and clickable quick replies that show your answers to frequent questions, frozen under prefers-reduced-motion.
- Tailwind
- React
- CSS
- WordPress

A paragraph whose words turn from grey to full ink, one by one, as the page scrolls, in pure CSS with a plain-text fallback.
- Tailwind
- React
- CSS
- WordPress

Four offset, translucent sine waves gently roll along the bottom of a section, each at its own pace.
- Tailwind
- React
- CSS
- WordPress