Animations

Animations#

You can specify the order of appearing of an individual component with the option animation

from plix import Slide

Slide().text('Text #1',y=0.7).\
        text('Text #2',y=0.5,animation= 1).\
        text('Text #3',y=0.3,animation= 2).show()
If no animation is provided, the components will always be displayed. To see the animation you have to enter full-screen mode. For a more generic animation, i.e. when components appear and disappear, specify animation as a binary vector
Slide().text(‘Text #1’,y=0.7).

text(‘Text #2’,y=0.5,animation=[1,0,1]).text(‘Text #3’,y=0.3,animation=2).save(prefix + ‘animation’).show()