Home » CSS » Css miscellaneous » Question
  1. Which one can animate the width of search input when get focus?
    1. outline
    2. color
    3. focus
    4. transition
    5. None of these
Correct Option: D

For animating the width of search input when it gets focus we used CSS transition property,

input[type=text] {-webkit-transition: width 09s ease-in-out; transition: width 0.9s ease-in-out; } input[type=text]:focus {width:100%;}



Your comments will be displayed only after manual approval.