Flipping cards in WordPress
Three service cards that flip in 3D on hover or keyboard focus to reveal lead time, price and a quote link.
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, Cartes qui se retournent
* Description: Trois cartes de prestations qui se retournent en 3D au survol ou au focus clavier pour révéler délai, tarif et lien de devis. Ajoute la composition « Cartes qui se retournent » à 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-carte-retournement
*<!-- wp:group {"tagName": "section", "className": "efcf", "layout": {"type": "default"}} -->
<section class="wp-block-group efcf"><!-- wp:paragraph {"className": "efcf__eyebrow"} -->
<p class="efcf__eyebrow">Menuiserie Duval · Angers</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "efcf__title", "anchor": "efcf-titre"} -->
<h2 class="wp-block-heading efcf__title" id="efcf-titre">Du bois massif, sur mesure</h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "efcf__hint"} -->
<p class="efcf__hint">Survolez une carte, touchez-la ou atteignez son lien au clavier pour voir délais et tarifs.</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
<ul class="efcf__grid" role="list">:root {
--efcf-bg: #f5f5f4;
--efcf-text: #1c1917;
--efcf-body: #57534e;
--efcf-card: #ffffff;
--efcf-border: #d6d3d1;
--efcf-kicker: #0f766e;
--efcf-back: #115e59;
--efcf-on-back: #f0fdfa;
--efcf-link: #ffffff;
--efcf-on-link: #134e4a;
--demo-effet-carte-retournement-bg: #fafaf9;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