Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.07 KB

pluginsecondary.md

File metadata and controls

41 lines (28 loc) · 1.07 KB

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> }.

  • self: If the step is active.
  • siblings: If a sibling is active. (Including self)
  • siblings self: If a sibling is active. (Excluding self)
  • grandchildren: If a child or grand child is active.
  • grandchildren self: If the step, a child or grand child is active.

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