為什么實(shí)現(xiàn)不了手風(fēng)琴?<style> .collapse-enter{ max-height: 0; } .collapse-enter-active { max-height: 10rem; -webkit-transition: all .3s cubic-bezier(1.0, 0.5, 0.8, 1.0); transition: all .3s cubic-bezier(1.0, 0.5, 0.8, 1.0); } .collapse-leave { max-height: 10rem; } .collapse-leave-active { max-height: 0; -webkit-transition: all .3s cubic-bezier(1.0, 0.5, 0.8, 1.0); transition: all .3s cubic-bezier(1.0, 0.5, 0.8, 1.0); }</style><h1 @click="detail = !detail">Title</h1><transition name="collapse"> <p v-show="detail"> 在紐約長島的一家餐吧里有一只132歲的大龍蝦。這只紐約最老的龍蝦名叫Louie,重22磅(約20斤),20年來,它一直生活在一家餐吧里,餐吧主人Butch Yamali就像養(yǎng)了一只寵物一樣,把它養(yǎng)在水族箱里。 </p></transition>data: { detail: false,}
vue 動畫過渡 手風(fēng)琴
蝴蝶刀刀
2018-11-23 19:15:27