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

前端 未结 2 1564
青春惊慌失措
青春惊慌失措 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:53

    Try this:

    main.animateActiveItem(1, {type: 'slide', direction: 'right'})

    0 讨论(0)
  • 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'});
    
    0 讨论(0)
提交回复
热议问题