Spinning vinyl record in WordPress
A vinyl record spins on its turntable next to the text, with an accessible pause switch, all in CSS with no script.
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, Vinyle qui tourne
* Description: Un disque vinyle tourne sur sa platine à côté du texte, avec un interrupteur pause accessible, le tout en CSS sans script. Ajoute la composition « Vinyle qui tourne » à 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-vinyle-rotatif
*<!-- wp:group {"tagName": "section", "className": "efvr-stage", "layout": {"type": "default"}} -->
<section class="wp-block-group efvr-stage"><!-- wp:group {"className": "efvr-deck", "layout": {"type": "default"}} -->
<div class="wp-block-group efvr-deck"><!-- wp:html -->
<div class="efvr-platter" aria-hidden="true">
<span class="efvr-disc"><span class="efvr-label">Sillons</span></span>
<span class="efvr-arm"></span>
</div>
<!-- /wp:html -->
<!-- wp:html -->
<label class="efvr-switch"><input class="efvr-pause" type="checkbox"> Mettre le disque en pause</label>
<!-- /wp:html --></div>
<!-- /wp:group -->:root {
--efvr-bg: #fbf3ea;
--efvr-text: #24160f;
--efvr-muted: #5b483c;
--efvr-deck: #e9dccd;
--efvr-label: #b91c1c;
--efvr-arm: #6b5a4e;
--efvr-ring: #b91c1c;
--efvr-accent: #b91c1c;
--efvr-accent-text: #ffffff;
--demo-effet-vinyle-rotatif-bg: #f1e7dc;
--demo-effet-vinyle-rotatif-text: #24160f;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