Threaded View

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    12
    Vote Rating
    0
    coure2011 is on a distinguished road

      0  

    Default 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);
        }

  2. You need to add the animation to the layout...

    Code:
    layout : {
        type : 'card',
        animation : {
            type : 'slide'
        }
    }

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi