摘要:
npm install better-scroll --save <template> <div class="box"> <div class="person-wrap" ref="personWrap"> <ul class="person-list" ref="li1"> <li class="person-item" :class="{'current':currentIndex inde 阅读全文
摘要:
1. vue内置组件transition 元素出现和消失都呈现动画 2. animate.css插件 参照https://github.com/daneden/animate.css 加入类名时呈现动画 3. wow.js 需引入animate,滚动到元素的位置展现动画 4. 原生css动画 阅读全文
摘要:
<div class="content"> <div v-for="(item,index) in 5" :key="index" :class="`box box${index}`"></div> </div> <style lang='scss' scoped> .content{ position: relative; } .box{ position: absolute; width: 5 阅读全文
摘要:
ul{ list-style-type: none; } .li1{ float: left; width: 50px; background-color: aqua; } .li2{ display: inline-block; width: 50px; background-color: aqua; } 123 1234 ... 阅读全文