Hybrid View
-
7 Feb 2012 1:47 AM #1
Answered: no animation when new card is loading
Answered: no animation when new card is loading
hi,
I am totally new to Sencha and trying to create a simple application using Sencha touch 2.0. I have to create 4 different pages. (Splash, Login, About and User). I creatd simple card layout for these pages but a new page is showing without any slide animation. What I am missing in code.
Code:launch: function() { var panel = Ext.create('Ext.Panel', { layout: 'card', fullscreen: true, items: [ { html: "Splash Screen<img src='images/logo.png' />" }, { html: "Login Screen<img src='images/logo.png' />" }, { html: "About Screen" }, { html: "User Screen" } ] }); panel.setActiveItem(0); setTimeout(function(){ panel.setActiveItem(1); },3000); }
-
Best Answer Posted by mitchellsimoens
You need to add the animation to the layout...
Code:layout : { type : 'card', animation : { type : 'slide' } }
-
7 Feb 2012 9:46 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
You need to add the animation to the layout...
Code:layout : { type : 'card', animation : { type : 'slide' } }Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote