jquery how to do a flip effect?

前端 未结 3 1414
闹比i
闹比i 2021-01-18 19:27

i am trying to mimic an effect found usually on mobile devices where you have a panel and when u click a button it spins around and on the other side it has some other info.

3条回答
  •  悲哀的现实
    2021-01-18 20:15

    About the current code. The reason why it's not working the way you want it to simply because it's not using any animation when switching between classes. You can use jQuery UI for that.

    Shown here: http://jqueryui.com/docs/switchClass/

提交回复
热议问题