Dear Friends.
I have an XML Program on SVG.Here is my program :
<?xml version="1.0" standalone="no"?>
<svg xmlns="<text y="40" style="font-size:24pt">
Using animation
</text>
<rect x="200" y="100" width="200" height="100" fill="blue">
<animate attributeType="CSS" attributeName="opacity"
from="1" to="0" dur="10s"/>
begin="0s" dur="10s" fill="freeze" from="200" to="100" />
<animate attributeName="y" attributeType="XML"
begin="0s" dur="10s" fill="freeze" from="100" to="50" />
<animate attributeName="width" attributeType="XML"
begin="0s" dur="10s" fill="freeze" from="200" to="400" />
<animate attributeName="height" attributeType="XML"
begin="0s" dur="10s" fill="freeze" from="100" to="50" />
</rect>
</svg>
In the above program,i can animate the Rectangle,the Rectangle size will become smaller and smaller and the colour will keep fading and after sometime,the animation will come to halt and the colour will come back to Original Colour.
My question is i am not able to change the colour at the end,i donot want the original colour (the Blue Colour) at the end,i want some other colour and another question is i want to keep some other colour when it is keep fading.
Your answers will be appreciated,it will be a great help for me and i hope this can help you guys also in learning somethings.
Regards
Strooky
I have an XML Program on SVG.Here is my program :
<?xml version="1.0" standalone="no"?>
<svg xmlns="<text y="40" style="font-size:24pt">
Using animation
</text>
<rect x="200" y="100" width="200" height="100" fill="blue">
<animate attributeType="CSS" attributeName="opacity"
from="1" to="0" dur="10s"/>
begin="0s" dur="10s" fill="freeze" from="200" to="100" />
<animate attributeName="y" attributeType="XML"
begin="0s" dur="10s" fill="freeze" from="100" to="50" />
<animate attributeName="width" attributeType="XML"
begin="0s" dur="10s" fill="freeze" from="200" to="400" />
<animate attributeName="height" attributeType="XML"
begin="0s" dur="10s" fill="freeze" from="100" to="50" />
</rect>
</svg>
In the above program,i can animate the Rectangle,the Rectangle size will become smaller and smaller and the colour will keep fading and after sometime,the animation will come to halt and the colour will come back to Original Colour.
My question is i am not able to change the colour at the end,i donot want the original colour (the Blue Colour) at the end,i want some other colour and another question is i want to keep some other colour when it is keep fading.
Your answers will be appreciated,it will be a great help for me and i hope this can help you guys also in learning somethings.
Regards
Strooky