how to animate transition from right to left on Sencha Touch 2?

前端 未结 2 1554
青春惊慌失措
青春惊慌失措 2021-02-10 16:03

I want to animate the transition when a card is activate on a Panel. any idea please?

The main.setActiveItem(1) is changing the card but I want to animate the transition

2条回答
  •  孤街浪徒
    2021-02-10 16:58

    Hi if you are using controller use ref for main and pass xtype of view as follows.

    this.getMain().animateActiveItem(your_xtype, {type: 'slide', direction: 'right'});
    

提交回复
热议问题