LoginSignup
2
2

More than 5 years have passed since last update.

# Sencha touchによるアニメーション

Posted at

Sencha touchを利用してjQueryの$("#element").animate({param: value})的なことをする方法

コード

animate.js
// element to animate.
var elm = someComponent.element.query('.target');
Ext.Anim.run(Ext.get(elm), 'fade', {
    out : false,    // true: fadeOut  / false: fadeIn
    duration: 2000,
    delay: 1000,
    before: function(){
      // call before animation
    },
    after: function(){
      // call after animation
    }
});

APIドキュメント

  • アニメーションの詳しい設定値

  • アニメーションの種類

サンプル

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2