Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ライブラリ「TweenMax」を使ってjQueryで関数slideUpに似たアニメーションをしたいです。slideUp を使用しない場合の問題は、この機能が iPad や iPhone で遅くなることです。
TweenMax を使用すると、jQuery よりも 20 倍高速になります:D
このライブラリを知っている人なら誰でも助けてくれますか?
Geek Ambassador の例は、私にはうまくいきませんでした。代わりに、-100% と 0 を交互にアニメーション化することになりました。
上にスライドします:
TweenMax.to(element, 0.3, {bottom: 0});
そして戻ってください:
TweenMax.to(element, 0.3, { bottom: "-100%"});