Components
← All components

Highlight on Insert

stimeo--highlight

Marks a freshly inserted element for a moment so CSS can flash it. How it flashes is yours.

  • Core

Marks a freshly inserted element for a short while, so CSS can flash it or fade it in off that mark. The mark clears itself after the time you set, so there is nothing to tidy up. There are two ways to use it: flash the element itself once, or watch a container and flash each element added to it, which suits pages where Turbo Stream appends rows. Visitors who ask for less motion get no flash, and the element simply appears. It carries no colours and no animation of its own; it only provides the mark.

running
  • Item 1
  • Item 2

Each new row is briefly highlighted, then fades back. The container runs in observe mode.

Keyboard

This component has no keyboard interactions of its own.