Skip to content

Chat bubble with typing indicator

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
Open in a new tab

Description

To present an FAQ in a lively way without installing a chat service: the visitor picks a question among the quick replies, it shows in a bubble on the right, three typing dots appear, then the team’s answer arrives in a bubble on the left. Answers are written in advance in the data-etcb-ask attribute of each button, no external service is called and the block never pretends to be a live agent (“instant answers”). The typing pause depends on the answer length (1.6 s at most), other questions are blocked meanwhile (aria-disabled) and questions already asked turn dashed. Effect: bubbles fade in with a slight slide and the dots bounce in turn, using only transform and opacity, with no layout shift. Under prefers-reduced-motion nothing moves: bubbles appear at once and the three dots stay still with graded opacity. Accessibility: a role="log" thread announced politely, each bubble prefixed with “Vous :” or “L’atelier :” for screen readers, the thread scrolls with the keyboard, 44 px buttons with a visible focus, AA contrast in light and dark mode, non-breaking spaces before “: ? !”. Without JavaScript the greeting and the contact link remain and the useless quick replies are hidden. Bubbles are cloned from the markup: change one class and every bubble follows. No horizontal scrolling from 360 px, no dependency. Example: a bicycle repair workshop in Grenoble.

Code

Loading the code…

The code of this component in

Archive contents

effet-texte-conversationnel-bulle-saisie-html-tailwind.zip3 files · 7 Ko

  • index.html10 Ko
  • README.md5 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 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