values="0;100;0"このように設定すると、属性の値がゼロから100になり、またゼロに戻る、というように変化させることができます。valuesでは、このように基準となる値をカンマで区切って記述することで、それらの1つ1つの値に変化していくようなアニメーションが可能です。
※リストが表示されない場合
AddBlockなどの広告ブロックツールがONになっているとリストなどが表示されない場合があります。これらのツールをOFFにしてみてください。
※図形が動くアニメーション例(動かない例) <circle id="circle1" cx="100" cy="100" r="75" filter="url(#MyFilter)" fill="red" stroke-width="0px"> <animate attributeType="css" attributeName="x" from="100" to="200" dur="5s" repeatCount="1" /> </circle> ※図形が動くアニメーション例(動く例) <circle id="circle1" cx="100" cy="100" r="75" filter="url(#MyFilter)" fill="red" stroke-width="0px"> <animate attributeType="xml" attributeName="cx" from="100" to="200" dur="5s" repeatCount="1" /> </circle> ※より複雑なアニメーション例 <circle id="circle1" cx="100" cy="100" r="75" filter="url(#MyFilter)" fill="red" stroke-width="0px"> <animate attributeType="xml" attributeName="cx" from="100" to="200" dur="5s" repeatCount="indefinite" /> <animate attributeType="xml" attributeName="cy" from="100" to="200" dur="3s" repeatCount="indefinite" /> <animate attributeType="css" attributeName="fill" values="#FF0000;#00FF00;#FF0000" dur="7s" repeatCount="indefinite" /> </circle>
<< 前へ | 次へ >> |