overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
关键字transition渐变,在2s内逐渐隐藏元素
transition
ul li { overflow: hidden; height: 50px; transition: height 2s; }