mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Add warning for tweening reactive properties
Added a warning about tweening reactive properties and suggested alternatives.
This commit is contained in:
parent
a5903ddd5f
commit
610cf92d39
1 changed files with 5 additions and 0 deletions
|
|
@ -55,6 +55,11 @@ Returns a new source with a value always moving torwards the input source value.
|
|||
|
||||
This module is designed for UI animations (size, position, transparency, colour, etc.). It is safe to `require` in non-Roblox environments (it should fall back to applying goals instantly).
|
||||
|
||||
::: warning
|
||||
Avoid tweening frequently changing reactive properties directly. Prefer tweening on events (button press, open/close).
|
||||
For continuous motion, prefer spring.
|
||||
:::
|
||||
|
||||
## Exports
|
||||
|
||||
- `vide.tween.tweenTo(instance, goals, tweenInfo?) -> Tween?`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue