I was wondering if anyone else is having problems with the Length animation. I am changing the left property of the panel
so it will move across the screen 500px.
here is my code:
<form id="form1" runat="server" > <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" /> <ajaxToolkit:AnimationExtender id="MyExtender" runat="server" TargetControlID="MyPanel"> <Animations > <OnClick> <Sequence> <StyleAction Enabled="true" /> <Length id="lenghtAni" AnimationTarget="MyPanel" Duration="7" startValue="0" endValue="500" property="left" unit="px" /> <Color AnimationTarget="MyPanel" Duration="1" StartValue="#FF0000" EndValue="#666666" Property="style" PropertyKey="backgroundColor" /> <Resize Height="0" Width="0" Unit="px" /> <Pulse Duration=".1"/> <Parallel Duration=".5" Fps="30"> <FadeOut /> <Scale ScaleFactor="5" Unit="px" Center="true" ScaleFont="true" FontUnit="pt" /> </Parallel> </Sequence> </OnClick> </Animations> </ajaxToolkit:AnimationExtender> <asp:Panel ID="MyPanel" style="left:10px;top:10px;height:200px;width:200px;border:solid 3px Blue;background-color:Lime; " runat="server">This is a test</asp:Panel> </form> <script type="text/xml-script"> <page xmlns:script="http://schemas.microsoft.com/xml-script/2005"> <components> </components> </page> </script>
All the animations work but the Length animation.
Am I missing something?
Nevermind, I figured it out.
Thanks
For the benefit of everyone else - I'm guessing it's because you should have property="style" and propertyKey="left".
No comments:
Post a Comment