jmpress.js documentation

Plugin: Secondary

The secondary plugin applies an alternative step config, on a chosen condition.

Alternative step configuration is only useable via template.

Conditions

The condition can only be set by template { secondary: <string> }.

Alternative config

The alternative config is described by prefixing the attribute by secondary (But stay in camel case).

Alternative { x: ..., rotateZ: ... } is { secondaryX: ..., secondaryRotateZ: ... }.

Because objects in templates are automatically expanded it can be simplified:

{
    x: ...,
    rotateZ: ...,
    secondary: {
        "": "siblings",
        x: ...,
        rotateZ: ...,
    }
}

Examples



Edit This Page