Can't make CSS width transition work
问题 I couldn't manage to find out how to make the CSS width transition work. Well, it actually work, but it just jump from auto to 100% with no animation. Here's my CSS: div#searchbar { padding: 10px; background-color: #404040; } .searchbar input { box-sizing: border-box; padding: 10px; font-family: Open Sans; font-size: 16px; color: #404040; outline: none; background-color: #909090; padding-left: 40px; -webkit-transition: width 0.4s ease-in-out; transition: width 0.4s ease-in-out; } .searchbar