Changes

Jump to navigation Jump to search
513 bytes added ,  13:17, 9 August 2020
m
Text replacement - "<cmd>" to "{{cmd|"
< [[VisualsPresentations]] | [[Using GraphicsPresentation effects]] | [[JavaScript]]> < [[Presentation effectsRawSteps]] | [[RawStepsSlideWithSteps]] | [[SlideWithStepsJavaScript]] >
== Introduction ==
* (probably one day [[SVG]] will enable that too)
The first alternative can be hardcoded, achieved with either some trickery (<{{cmd>|dorecurse</cmd> }} may sometimes help you) or with support of modules such as [[RawSteps]].
This page will mostly deal with <b>[[JavaScript]]</b> animations.
\setupinteraction[state=start]
\definepairedbox[animationtext][location=top,align=middle,width=\textwidth]
\starttext
{\placeanimationtext{The letter c}{\externalfigure[dummy]}}
{\placeanimationtext{The letter d}{\externalfigure[dummy]}}
\stopanimation
 
\stoptext
</texcode>
 
=== Example with formulae ===
<texcode>
\usemodule[animation]
 
\setuppapersize[S6][S6]
 
\setupinteraction[state=start]
 
\definepairedbox[animationtext][location=top,align=middle,width=\textwidth]
 
\starttext
 
\startanimation
{\placeanimationtext{Sine norm, and}{\startformula \int_{0}^{2\pi}\sin^2(x)dx = \stopformula}}
{\placeanimationtext{Cosine norm}{\startformula\int_{0}^{2\pi}\cos^2(x)dx = \stopformula}}
{\placeanimationtext{are equal}{\startformula = \pi. \stopformula}}
\stopanimation

Navigation menu