返回列表 發帖

jquery 的 animate問題

請問 animate 是否無法變更 background-position 屬性?

想做一個像下例這樣的效果(因為它是無效的)要怎麼做?
$(this).animate({background-position : "0px -140px"}, "fast"); 
ps:就是一長串圖,我想做出像動畫連播的效果…

不知道有大大可以教一下嗎!?

$(this).animate({
  backgroundPositionX : "100px", 
  backgroundPositionY : "100px"
}, "fast");
To infinity and beyond!

TOP

太謝謝了!!

TOP

返回列表 回復 發帖