Since you are not asking for any specific product, I would like to give some explanation without concrete example.
Package animate
would do the job that eat a PDF (sub)file and embeds it into the main PDF file. So it is possible to, say, draw a series of TikZ pictures onto an individual file and make it alive in the main one. It has a vivid document and I guess that makes it easy to learn.
Probably yes. But the mechanism is the same: you embed something, movable or speakable, into the main PDF file, and then play it, automatically or manually. PDF readers does not like embedded file very much, so it does not really matter if there are alternatives.
In PDF standard there is a feature:
Optional content (PDF 1.5) refers to sub-clauses of content in a PDF document that can be selectively viewed or hidden by document authors or consumers. This capability is useful in items such as CAD drawings, layered artwork, maps, and multi-language documents.
Please notice that it says viewed or hidden: there is no transition defined.
- As far as I know CSS defines some simple transitions, in which case browsers need to fill-in the intermediate frames by calculating the appropriate position/color/etc of objects. However in PDF, you need to generated the intermediate frames by yourself and then embed them. A simple math shows that If you apply, say, fade-in to all objects in your PDF file, all objects will be repeated, say, 20 times if there are 20 intermediate frames. Ultimately you would end up with a 20x file size.
In conclusion, they are all possible. But one have to realize that most PDF readers does not support what animate
/media9
produces. For example on Mac, most people have Preview as the default and the only PDF reader, which shows nothing when it encounters those fancy things. Even your PDF reader support these features, they are definitely not designed to support a lot of them.
In some sense, this makes your Portable Document Formate file not portable anymore.
Cheat list
PDF standard support the following:
- Embedding external PDF files and play them as they are GIFs in webpages. Accessible by the package
animate
.
- Page-wise transition. An incomplete list can be found in Beamer document II 14.3.
- you can control the duration of the transition, which makes your main PDF file a huge GIF.
- Optional content Group. No transition defined. Javascript used. Accessible by the package
ocg-p
.
- Embedding multimedia files. Accessible by the package
media9
. (movie15
is obsolete.)
- Embedding 3D objects. This is a special case. the language
Asymptote
and the package asymptote
do the job.
animate
...but at the end of the day, a PDF is a PDF, not a multimedia player.