• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Behaviors and the Timeline

Although the timeline is a powerful feature, you shouldn't feel restricted to playing animations only when the page loads. In the next couple of sections, you'll see how you can use behaviors in conjunction with the timeline to control which and when animations play depending on user interaction. Armed with this knowledge, you'll see how to create an animated pop-up menu.

Controlling the Timeline with Behaviors

In the previous sections, you looked at creating animations when the page loaded for the first time. Of course, this method is restrictive because the user can't control when the animation plays. To fix this problem, we could easily add buttons to the page that, when clicked, start or stop a particular animation. To add this functionally, follow these steps:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint