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

◆ quarticOut

detail::quarticOutEasing quarticOut {}
inlineconstexpr

Quartic polynomial easing (t⁴) with strong deceleration.

The quarticOut easing function provides pronounced deceleration that's popular for animations needing clear emphasis without being as extreme as exponential.

Characteristics:

  • Strong deceleration curve
  • Smooth, extended slowdown
  • Emphasizes final position
  • Balanced between cubic and exponential

This easing excels at:

  • Emphasized arrivals: Elements settling with impact
  • Current design patterns: Strong deceleration suitable for emphasized arrivals
  • Medium-length animations: 300-600ms sweet spot
  • Purposeful motion: Clear acceleration and deceleration

QuarticOut provides more "oomph" than cubic while remaining smooth and professional. It's a good choice when cubic feels too subtle.

Mathematically: f(t) = 1 - (1-t)⁴

// Card sliding into place with emphasis
auto y = tweeny::from(200.0f)
.to(0.0f)
.during(40U)
.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::quarticOutEasing quarticOut
Quartic polynomial easing (t⁴) with strong deceleration.
Definition easing.h:1146
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
quarticIn For strong acceleration
quarticInOut For strong motion at both ends
cubicOut For gentler deceleration
quinticOut For even stronger deceleration
Visualize at https://easings.net/#easeOutQuart