Please participate in the MPF User Survey 2018.


Config file section

Valid in machine config files YES
Valid in mode config files YES

The animations: section of your config is where you list the reusable “named” animations.

Note that while you can add animations in both the machine-wide and a mode-specific config, the list of animations is global, meaning that any animation is available in any mode, and you can’t have two different animations with the same name.

For example:

    property: opacity
    value: 1
    duration: 1s
    property: opacity
    value: 0
    duration: 1s

The above example defines animations named fade_in and fade_out that you can use, by name, in any widget or widget_player config where you would ordinarily define your own animations.

See the How to animate display widgets for more details.