I have a carousel and a tap listener and I can change the width of the images in the HTML by tap - but how can I animate this action? Here is the working code (HTML - First card content):

Code:
<div id="c0" style="text-align:center; background-color:blue;">
<img id="pic01" src="http://lorempixum.com/402/376/sports/2/" class="horizontal" />
<img id="pic02" src="http://lorempixum.com/576/402/sports/2/" class="vertikal" />
</div>
the index.js part for the listener - working without any animation of the scaling The link to the project:

Code:
listeners: {
    el: {
        tap: function(){
        var els = Ext.select("img");
        els.setWidth("100%");
        Ext.Msg.alert('wech dat Bild!'); 
        },
        delegate: 'img'
    },
        pinch: {
        element: 'body', 
        fn: function(){ 
        var els = Ext.select("img");
        els.setWidth("50%");
        Ext.Msg.alert('Pinch'); 
        }
    }

}
And I tried this, but it does not work:

Code:
// Create a Carousel of Items
    var carousel1 = new Ext.Carousel({
        defaults: {
            cls: 'card'
                        },
        items: [{
            title: 'Tab 1',
            contentEl: 'c0' 
                        },
        {
            scroll: 'vertical',
            title: 'Tab 2',
            contentEl: 'c1'                  
             }], 


 listeners: {
            el: {
                tap: function(){
               var els = Ext.select("img");
              //  els.setWidth("100%");
    els.animate({
        to: {
            width: 1024
        }
    }); 
  ...
I tried to0:

Code:
var els = Ext.get("img");
but nothing happened.(Its from: Ext4.0.0

Next i tried was:

Code:
            pinch: {
            
            element: 'body', 
            fn: function(){           
 var el = Ext.get(img);
var opt = {
    duration: 1,
    easing: 'elasticIn',
    callback: this.foo,
    scope: this
};
// animation with some options set
el.setWidth(100, opt);

            Ext.Msg.alert('Pinch'); 
            
            
            }
        }
But the same --- nothing happened

What's wrong and what's the right way? Thanx a lot for answers.