Frosted glass card in WordPress
A translucent, blurred card set over colourful shapes that slowly float behind it.
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, Carte en verre dépoli
* Description: Une carte translucide et floutée posée sur des formes colorées qui flottent lentement derrière elle. Ajoute la composition « Carte en verre dépoli » à 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-verre-depoli
*<!-- wp:group {"tagName": "section", "className": "efvd", "layout": {"type": "default"}} -->
<section class="wp-block-group efvd"><!-- wp:html -->
<div class="efvd__shapes" aria-hidden="true">
<span class="efvd__shape efvd__shape--1"></span>
<span class="efvd__shape efvd__shape--2"></span>
<span class="efvd__shape efvd__shape--3"></span>
</div>
<!-- /wp:html -->
<!-- wp:group {"tagName": "article", "className": "efvd__card", "layout": {"type": "default"}} -->
<article class="wp-block-group efvd__card"><!-- wp:paragraph {"className": "efvd__eyebrow"} -->
<p class="efvd__eyebrow">Formule Sérénité</p>
<!-- /wp:paragraph -->:root {
--efvd-bg: #eef2ff;
--efvd-s1: #818cf8;
--efvd-s2: #f472b6;
--efvd-s3: #2dd4bf;
--efvd-card: rgb(255 255 255 / 0.62);
--efvd-edge: rgb(255 255 255 / 0.9);
--efvd-line: rgb(255 255 255 / 0.7);
--efvd-text: #111827;
--efvd-body: #374151;
--efvd-accent: #3730a3;
--efvd-on-accent: #ffffff;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