Zero-JS :placeholder-shown floating labels
Animate input labels smoothly between placeholder position and top eyebrow using pure CSS selectors.
How CSS-only floating labels work
By pairing a single-space placeholder=" " with the :placeholder-shown and :focus sibling selectors, the label floats cleanly above the input whenever focused or filled—requiring zero JavaScript event listeners.