2014-03-25 46 views

回答

0

我不知道CSS,但是這一點,Using CSS for fade-in effect on page load,似乎就好了.. 。

http://jsbin.com/qoyudape/6/edit

音符,渲染的東西我確實是沒有必要的,你可能會很容易地做到了沒有它...

http://jsbin.com/qoyudape/8/edit

,或者當項目被插入到頁面中,你可以做時間敏感的動畫

App.BlinkingFooView = Em.View.extend({ 
    didInsertElement: function(){ 
    if(this.get('controller.b') % 2 === 0){ 
     this.$().addClass('mod') 
    } 
    } 
}); 

http://jsbin.com/qoyudape/11/edit

+0

而如果我想申請在CSS不可用的效果,這可能與Ember? – Tomas

+0

因爲我需要在某些情況下應用效果,而不是所有的時間。 – Tomas

+0

有幾個地方可以做到這一點,這是一個非常常見的地方。 – Kingpin2k