Skip to content

Candle flame

A candle whose flame flickers and whose glow pulses, for the cosy mood of a spa, a restaurant or a candle shop.

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

Description

Next to the text, a candle drawn entirely in CSS: wax with gradient highlights, a wick, a teardrop flame going white, yellow then orange. The flame flickers irregularly (stretching, slight tilts around its base) and the glow pulses on a different rhythm, so the whole never feels mechanical. Only the flame’s transform and the glow’s opacity are animated, with no image or script; the candle is decorative and hidden from screen readers. The section keeps a dark mood in both light and dark mode, with AA text contrast and a clearly visible booking button. With prefers-reduced-motion the flame shines without moving. Two-column layout, the candle moving above the text on phones.

Code

Loading the code…

The code of this component in

Archive contents

effet-flamme-bougie-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