Tweeny 4.1.0
A Tweening library for modern C++
Loading...
Searching...
No Matches

◆ sinusoidalOut

detail::sinusoidalOutEasing sinusoidalOut {}
inlineconstexpr

Sinusoidal easing based on sine wave for smooth deceleration.

The sinusoidalOut easing function uses a sine curve for deceleration, creating extremely smooth, natural motion that settles gently.

Characteristics:

  • Very smooth deceleration
  • Natural, flowing motion
  • Gentle slowdown
  • Mathematically elegant

This easing excels at:

  • Natural UI motion: Smooth, organic feel
  • Continuous animations: Loops, cycles, repeated motion
  • Gentle transitions: Calm, relaxed interfaces
  • Accessible design: Motion-sensitivity friendly

SinusoidalOut is excellent when you want smoothness above all else. It's gentler than quadratic while still providing clear easing.

Mathematically: f(t) = sin(t * π/2)

// Smooth fade in
auto opacity = tweeny::from(0.0f)
.to(1.0f)
.during(30U)
.build();
tweeny_builder< true, FirstValue, RemainingValues... > to(const FirstValue &firstComponent, const RemainingValues &... remainingComponents) &
Adds a target keyframe to the tween.
Definition tweeny.h:109
tweeny_builder & via(EasingFunctionTypes... easing_functions)
Specifies per-component easing functions for the last keyframe segment.
Definition tweeny.h:198
constexpr detail::sinusoidalOutEasing sinusoidalOut
Sinusoidal easing based on sine wave for smooth deceleration.
Definition easing.h:1374
tweeny_builder< false, FirstValue, RemainingValues... > from(FirstValue firstComponent, RemainingValues... remainingComponents)
Creates a new tween builder starting from the specified value(s).
Definition tweeny.h:347
See also
sinusoidalIn For smooth acceleration
sinusoidalInOut For smooth motion at both ends
quadraticOut For similar gentleness
Visualize at https://easings.net/#easeOutSine