Skip to content

Feedback form with an animated check mark

A short form (rating, comment, optional photos) that confirms sending with an animated check mark, announced to screen readers by an aria-live region.

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

Description

To ask for feedback right after a service: a repair, a call-out, a delivery, a stay. The customer picks a rating, writes a few words (10 to 500 characters, with a counter) and can attach up to 3 photos, with thumbnails and one-by-one removal. Each photo is checked in the browser: 5 MB maximum and first bytes matching JPEG, PNG or WebP, which rules out a merely renamed file. These checks do not replace those on your server, which must also strip metadata (GPS position in particular) before any publication. The publication box is never pre-ticked and stays optional: without it, the feedback remains internal. After a successful send, the fields give way to a check mark: the disc appears, the stroke draws itself and a ring fades out, in CSS only, once. The check mark is decorative; the message goes through an aria-live region present from page load, and focus stays in the form on a container without text, so the message is not read twice. With prefers-reduced-motion, nothing moves: the check mark appears at once, fully drawn. Keyboard: Tab between fields, arrows between ratings, Space to tick, Enter to send. Fill in the data-frx-endpoint attribute to send the feedback as a multipart POST: the sending state and failures are handled, and the answers stay in place on error. While it is empty, the check mark still appears so you can see it, with a message saying plainly that nothing is sent. No dependencies, AA contrast in light and dark mode, 44 px targets, no horizontal scrolling from 360 px. Example: a bicycle repair workshop in Nantes.

Code

Loading the code…

The code of this component in

Archive contents

formulaire-ajout-avis-photos-html-tailwind.zip3 files · 10 Ko

  • index.html23 Ko
  • README.md5 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A recruitment form for small businesses: target position, introduction, CV checked in the browser and GDPR consent, with inline errors.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A quote request form whose labels, hints and error messages are full French sentences, still readable at 320 px: nothing overflows, nothing is cut off, and each error is tied to its field.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Visitors pick a package and tick options: the pre-tax total, VAT and total including tax update live, and the summary is sent with the contact form.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A short NPS survey: a 0 to 10 score as radio buttons, then a follow-up question adapted to whether the customer is a detractor, passive or promoter.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component