Skip to content

Hanging shop sign

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

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

The shop name is painted on a sign hung from a bar by two chains; it swings a few degrees around its anchor point, like a real sign in the breeze. The effect instantly gives a craft or neighbourhood-shop feel to the header of a bakery, café, bookshop or barber. The heading is a real h2, readable while it moves with AA contrast in light and dark mode; the bar and chains are decorative and hidden from screen readers. Only one property is animated (transform: rotate), the amplitude is set in the efes-swing animation and the speed with --efes-duration. The chains are drawn with a repeated gradient, with no image. With prefers-reduced-motion the sign stays still. No horizontal scrolling from 360 px.

Code

Loading the code…

The code of this component in

Archive contents

effet-enseigne-suspendue-html-tailwind.zip3 files · 4 Ko

  • index.html3 Ko
  • README.md3 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • 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