A bonafide CSS trick from Will Boyd!
- Force all the content of an element to be selected when clicked with
- If you click a second time, let the user select just parts of the text as normal.
- Second click? Well, it’s a trick. You’re really using a time-delayed
@keyframesanimation when the element is in
:focusto change it to
Will’s article has a bunch of more useful information and use-cases for