caret-color in CSS

 The 'caret-color' CSS property changes the color of the flashing bar which shows the point at which text will be inserted.


The 'caret-color' property applies to 'input', 'textarea', and text with the 'contenteditable' HTML attribute set.


If the 'caret-color' is not set then the color is the color of the 'input' element.


It seems a good idea to set the 'caret-color' on the ':focus' CSS selector.


  The 'caret-color' can be animated with 'keyframes' in CSS.


This animation does not seem to affect the performance of my page.  I was worried about the performance as changing the colour will not run on the GPU.


There are more tips at: bbingo.xyz/t

Comments

Popular posts from this blog

webkit-tap-highlight-color in CSS

Steve Jobs quotes