Silverlight & Blend Animation Design series four: Tilt Animation (SkewTransform)

Source: Internet
Author: User
Tags silverlight

The Tilt-change animation (skewtransform) in Silverlight enables the horizontal, vertical tilt-change animation of an object element. The effect of tilt change in our real life is very common, such as the paper effect of turning the book, closing the door when the gate shape tilt transformation. Implementing a tilt-change animation effect in Silverlight is very simple, and it's even better if you use blend's powerful design tool to achieve that.

The effect of the tilt effect is actually very good, with the tilt transformation you need to note that there are two points: Tilt direction and tilt center point. You can tilt a point in the direction of the X or Y coordinate for the tilt center point, following a simple example of the various degrees of tilt that is performed by the default center store:

<grid x:name= "LayoutRoot" background= "White" margin= ">"
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<image source= "11.jpg" grid.row= "0" grid.column= "0"/>
<image source= "11.jpg" grid.row= "0" grid.column= "1" >
<Image.RenderTransform>
<skewtransform anglex= "angley=" 0 "></SkewTransform>
</Image.RenderTransform>
</Image>
<image source= "11.jpg" grid.row= "1" grid.column= "0" >
<Image.RenderTransform>
<skewtransform anglex= "0" angley= "-5" ></SkewTransform>
</Image.RenderTransform>
</Image>
<image source= "11.jpg" grid.row= "1" grid.column= "1" >
<Image.RenderTransform>
<skewtransform anglex= "angley=" ></SkewTransform>
</Image.RenderTransform>
</Image>
</Grid>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.