Threaded View

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Tunisia
    Posts
    74
    Vote Rating
    1
    zied jouini is on a distinguished road

      0  

    Default Answered: CSS3 in sencha touch

    Answered: CSS3 in sencha touch


    SALAM for all.
    i want to do a little animation with css3 in my sencha app.
    i used this code:
    Code:
    App.views.BankingCompte = Ext.extend(Ext.Panel, {
    scroll: 'vertical',
     items: [{
      xtype: 'carousel',
    fullscreen: true,
    styleHtmlContent: true,
    style: 'background: #d8e2ef',
        items: [
    {
    html: 
    '<div id="animation">     <div class="test"> this is a test  </div>
    </div>',
    
    
    
    cls: 'card'
    }
    ]
    
    
    }]
    
    
    });
    Ext.reg('BankingCompte', App.views.BankingCompte);
    and in the style.css file, i put this code.
    Code:
    #animation
    {
     margin:auto;
     position:relative;
    left:500px;
    }
    
    .test
    {
    position:absolute;
    left:0px;
    -webkit-transition: all 2s linear;
    -webkit-transform:translateY(320px);
    }
    but it doesn't work.
    does sencha touch support CSS3? or have i an error in my code ?
    thank you

  2. Sencha Touch doesn't do anything to prohibit CSS3 in fact it uses CSS3 quite a bit, the browser is what supports CSS3. What are you trying to do? I know animate <div class="test"> but try adding a button to change the CSS

    Code:
    App.views.BankingCompte = Ext.extend(Ext.Panel, {
        fullscreen: true,
        scroll: 'vertical',
        layout : 'fit',
        items: [{
            xtype: 'carousel',
            styleHtmlContent: true,
            style: 'background: #d8e2ef',
            items: [
                {
                    html:'<div id="animation">     <div class="test"> this is a test  </div></div>',
                    cls: 'card',
                    items : [
                        {
                            xtype   : 'button',
                            text    : 'Animate',
                            handler : function(button) {
                                var container = button.up('container'),
                                    el        = container.getEl(),
                                    div       = el.down('div.test');
    
                                div.setXY([200, 200]);
                            }
                        }
                    ]
                }
            ]
        }]
    });

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