Creating ebooks with interactive elements or animations is fairly difficult. The best tool I have found for it is Tumult Hype. There is now a wonderful book on the iBookstore, A Book about Hype, which explains how to create such elements and how to insert them in iBooks Author. It is also possible to include them in ePub3 books. Unfortunately, Kindle cannot cope with such things.