rojo/.cursor/rules/roblox/reference/engine/enums/EasingStyle.yaml
2026-02-02 12:08:47 -06:00

95 lines
2.8 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: EasingStyle
type: enum
summary: |
Enum used with `Datatype.TweenInfo|TweenInfo.new` to control the motion of a
`Class.Tween`.
description: |
These enum values are passed to `Datatype.TweenInfo|TweenInfo.new()` to
control the motion of a `Class.Tween`. The following graphs reflect easing
styles for `Enum.EasingDirection|Enum.EasingDirection.In`. For graphs
reflecting `Enum.EasingDirection|Enum.EasingDirection.Out` and
`Enum.EasingDirection|Enum.EasingDirection.InOut`, see
[UI Animations](../../../ui/animation.md#style).
<img src="/assets/engine-api/enums/EasingStyle/Easing-Styles-In.png" width="800" alt="Graphs of EasingStyle variations with an 'In' EasingDirection." />
code_samples: []
tags: []
deprecation_message: ''
items:
- name: Linear
summary: |
Moves at a constant speed.
value: 0
tags: []
deprecation_message: ''
- name: Sine
summary: |
Speed is determined by a sine wave for a gentle easing motion.
value: 1
tags: []
deprecation_message: ''
- name: Back
summary: |
Slightly overshoots the target, then backs into place.
value: 2
tags: []
deprecation_message: ''
- name: Quad
summary: |
Similar to `Sine` but with a slightly sharper curve based on quadratic
interpolation.
value: 3
tags: []
deprecation_message: ''
- name: Quart
summary: |
Similar to `Cubic` but with an even sharper curve based on quartic
interpolation.
value: 4
tags: []
deprecation_message: ''
- name: Quint
summary: |
Similar to `Quart` but with an even sharper curve based on quintic
interpolation.
value: 5
tags: []
deprecation_message: ''
- name: Bounce
summary: |
Bounces backwards multiple times after reaching the target, before
eventually settling.
value: 6
tags: []
deprecation_message: ''
- name: Elastic
summary: |
Moves as if attached to a rubber band, overshooting the target several
times.
value: 7
tags: []
deprecation_message: ''
- name: Exponential
summary: |
The sharpest curve based on exponential interpolation.
value: 8
tags: []
deprecation_message: ''
- name: Circular
summary: |
Follows a circular arc, such that acceleration is more sudden and
deceleration more gradual versus `Quint` or `Exponential`.
value: 9
tags: []
deprecation_message: ''
- name: Cubic
summary: |
Similar to `Quad` but with a slightly sharper curve based on cubic
interpolation.
value: 10
tags: []
deprecation_message: ''