How to do this effect?

what to do with the gradual expansion of the search box when you click the icon. Expand from right to left


div{
    width:100px;
    height:100px;
    border-radius:50px;
    background:-sharpccc;
    overflow:hidden;
    float:right;
}
div:hover{
  width:400px;
  transition: width 2s; 
}
div
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e43f92-44a72.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e43f92-44a72.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?