Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Animation and Special Effects > Animating Drag-and-Drop Operations

Animating Drag-and-Drop Operations

You can combine animation with drag-and-drop operations—for instance, to provide a visual guide for the user. To use an animation effect at the conclusion of a drag-and-drop operation, you just subscribe to the /dnd/move/stop event and execute your animation when that event occurs.

The example drag.html displays an image that you can drag; when you drop the image, it fades out.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint