caret-animation CSS property

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The caret-animation CSS property is used to enable or disable the blinking behavior of the insertion caret, the visible marker that appears in editable elements to indicate where the next character will be inserted or deleted.

The caret-animation property can also be set as part of the caret shorthand property.

Note: When applying a custom animation to the caret, you should stop the default blinking so that it doesn't interfere with the animation.

Syntax

css
/* Keyword values */
caret-animation: auto;
caret-animation: manual;

/* Global values */
caret-animation: inherit;
caret-animation: initial;
caret-animation: revert;
caret-animation: revert-layer;
caret-animation: unset;

Values

The caret-animation property is specified as one of the keyword values listed below.

auto

The caret blinks on and off. This is the default (initial) value.

manual

The caret does not blink on and off.

Formal definition

Initial valueauto
Applies toText or elements that accept text input
Inheritedyes
Computed valueas specified
Animation typediscrete

Formal syntax

caret-animation = 
auto |
manual

Examples

Basic