Pop Switch
Swipe, rotate or pinch a layer between any two positions, rotations or scales, with added bouncy animations from Pop Animation.
Use the Touch button on a layer to quickly add interactions.
Pop Switch
- Enable
- Layer
- Gesture
- Start Value
- End Value
- Flip
- Turn On
- Turn Off
- Bounciness
- Speed
- Value
- Progress
- On/Off
- Enable
A boolean that is true when the gesture is enabled.
- Layer
The layer to capture gestures from.
- Gesture
The gesture to detect. The options:
- Swipe X
- Swipe Y
- Pinch Scale
- Pinch Rotate
- Pinch X
- Pinch Y
- Start Value
A number that represents the default position, scale or rotation of the layer.
- End Value
A number that represents the second position, scale or rotation of the layer that the gesture should animate towards.
- Flip
A pulse that flips the state of the switch (from on to off, or vice versa), which will also animate the value to the corresponding number.
- Turn On
A pulse that turns the switch on, which will also animate the value to the end value. If the switch is already on, the pulse has no effect.
- Turn Off
A pulse that turns the switch off, which will also animate the value to the start value. If the switch is already off, the pulse has no effect.
- Bounciness
A number that represents the bounciness of the animation.
- Speed
A number that represents the speed of the animation.
- Value
A number that represents the current position, rotation or scale. Connect to the position X, position Y, rotation Z, or scale of the layer.
- Progress
A progress value that represents the animation progress between the start and end values. See Animation Basics for more information.
- On/Off
A boolean that is true either:
When the current position, rotation or scale of the gesture is closer to the end value than the start value. When the switch is flipped, turned on, or turned off with a pulse.