Skip to content

Hanging shop sign in WordPress

A shop sign hung on two chains swings gently, in pure CSS, for a warm shop header.

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

Open in a new tab

The code in WordPress

effet-enseigne-suspendue.php
<?php
/**
 * Plugin Name: Forge, Enseigne suspendue
 * Description: Une enseigne de boutique accrochée par deux chaînes se balance doucement, en CSS pur, pour un en-tête de commerce chaleureux. Ajoute la composition « Enseigne suspendue » à 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-enseigne-suspendue
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "efes-effet-enseigne-suspendue", "layout": {"type": "default"}} -->
<section class="wp-block-group efes-effet-enseigne-suspendue"><!-- wp:html -->
<span class="efes-bar" aria-hidden="true"></span>
<!-- /wp:html -->
<!-- wp:group {"className": "efes-sign", "layout": {"type": "default"}} -->
<div class="wp-block-group efes-sign"><!-- wp:html -->
<span class="efes-chain" aria-hidden="true"></span>
<!-- /wp:html -->
<!-- wp:html -->
<span class="efes-chain efes-chain--right" aria-hidden="true"></span>
<!-- /wp:html -->
<!-- wp:group {"className": "efes-board", "layout": {"type": "default"}} -->
style.css
:root {
  --efes-effet-enseigne-suspendue-bg: #f8f3ea;
  --efes-effet-enseigne-suspendue-text: #2d2117;
  --efes-effet-enseigne-suspendue-muted: #5c4a3b;
  --efes-effet-enseigne-suspendue-bar: #3d2e22;
  --efes-effet-enseigne-suspendue-board: #7c2d12;
  --efes-effet-enseigne-suspendue-board-text: #fff7ed;
  --efes-effet-enseigne-suspendue-board-line: #fdba74;
  --efes-effet-enseigne-suspendue-accent: #7c2d12;
  --efes-effet-enseigne-suspendue-accent-text: #ffffff;
  --demo-effet-enseigne-suspendue-bg: #efe7da;
  --demo-effet-enseigne-suspendue-text: #2d2117;

Free component: copy it freely, including for commercial projects.

Visual effects components in 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
    Component
  • 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
    Component
  • 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
    Component
  • 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
    Component
  • Four offset, translucent sine waves gently roll along the bottom of a section, each at its own pace.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component