
130
Use motion paths
Last updated 6/15/2014
2 In the Timeline or the Elements panel, click the Open Actions button for the Rectangle element.
3 Choose click for the event.
4 Add the following statement for the click event: sym.$("Image").fadeToggle()
5 That's all! Preview your composition in a browser.
When you click on the rectangle, Edge Animate uses jQuery to select the image and executes the fadeToggle()
met
hod. The image fades in and out with alternate clicks. jQuery does all the work of creating two inverted
animations without requiring you to manually create any symbols, keyframes, or mechanisms to remember the state
of the image. jQuery is powerful and makes a good addition to your designer-developer toolkit. You can view the
05JQuery.an file in the 05End_JQuery folder to see the completed example.
Review
Comentarios a estos manuales