caret-animation

An experimental property to control the blinking behavior of the text cursor (caret). Setting it to 'manual' allows you to disable the default blink.

It is documented as part of the CSS Basic User Interface specification. This is an experimental technology. The syntax and behavior are still subject to change.

/* Usage Example */
textarea.static-cursor {
  /* Experimental: disables the cursor blink */
  caret-animation: manual;
}

/* Syntax */
caret-animation: auto;
caret-animation: manual;

/* Global values */
caret-animation: inherit;
caret-animation: initial;
caret-animation: revert;
caret-animation: revert-layer;
caret-animation: unset;
Limited availability Since 2020 63% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

140+
140+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC