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 Animation模塊一起用添加彈性動畫胃珍。
使用圖層右上角的Touch按鈕快速添加交互。
輸入口
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
- X軸向滑動
- Y軸向滑動
- 捏住縮放
- 捏住旋轉
- 捏X軸向
- 捏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.
翻轉Start Value開始值和End Value 結束值缸沃。
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.
表示當前位置惨缆、角度或比例的數字东羹。連接到層的Position X剂桥、PositionY、Rotation Z或Scale属提。
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.
符合以下兩種情況中的一個時布爾值為真:
- 當手勢的當前位置冤议、旋轉或比例接近起始值時斟薇。
- 當開關有翻轉,打開恕酸,或關閉的操作堪滨。
(板栗:哎耶上面寫的其實不知道啥哎~)
Related Examples 案例
Instagram Notifications
Switch between notifications with animation.