我試圖在發送請求時爲圖像添加動畫,然後在收到響應時停止旋轉該圖像,但我在動畫方面遇到了問題。你會如何編寫一個效果連續旋轉圖像?
這是我到目前爲止有:
<s:Sequence id="requestAnimation" repeatCount="0">
<s:Parallel>
<s:Fade alphaFrom="1" alphaTo="0" target="{busyLogo}" duration="250" />
<s:Fade alphaFrom="0" alphaTo="1" target="{cornerLogo}" duration="250" />
</s:Parallel>
<s:Sequence repeatCount="0">
<s:Rotate3D angleZFrom="0"
angleZTo="360"
autoCenterProjection="true"
autoCenterTransform="true"
duration="1000"
target="{busyLogo}" />
</s:Sequence>
</s:Sequence>
圖像旋轉,當它到達一個完整的旋轉到底是減速至停止,然後重新啓動。我希望它在一個連續的循環中旋轉。
這隻會導致它播放一次。我希望圖像無限期旋轉。 –
我猜錯了你的問題。我上面的回答已被更正。 –
謝謝我將Linear easer添加到效果中。 –