search

Home  >  Q&A  >  body text

vue.js - vuejs 折叠面板的展开收缩动画应该怎么实现?用vue自带的过渡效果还是css3?

大家讲道理大家讲道理2864 days ago2129

reply all(6)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 11:57:19

    It can be implemented simply like this
    http://output.jsbin.com/muzotal

    reply
    0
  • 阿神

    阿神2017-04-17 11:57:19

    The effect is to add a transiton, and then change the p height value. Just add a css class

    reply
    0
  • 黄舟

    黄舟2017-04-17 11:57:19

    The height is 0; when clicked, the height is set to width:auto;

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:57:19

    @click event control class is OK height + transition

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 11:57:19

    Is there any source code for vue2.0 expansion and contraction animation?

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 11:57:19

    Just use the one that comes with you

    reply
    0
  • Cancelreply