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

◆ quarticInOut

detail::quarticInOutEasing quarticInOut {}
inlineconstexpr

Quartic polynomial easing with strong acceleration and deceleration.

The quarticInOut easing function combines strong acceleration and deceleration for confident, purposeful motion. More dramatic than cubic, less extreme than quintic.

Motion profile:

  • First half: Strong acceleration (t⁴)
  • Midpoint: Maximum velocity
  • Second half: Strong deceleration
  • Creates pronounced S-curve

This easing is appropriate for:

  • Emphasized transitions: Strong acceleration and deceleration
  • Current design patterns: Strong deceleration curves
  • Important animations: Focal transitions
  • Medium durations: 300-600ms range

Mathematically: Combines quarticIn for t < 0.5 and quarticOut for t >= 0.5

// Page transition with impact
auto x = tweeny::from(0.0f)
.to(1920.0f)
.during(45U)
.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::quarticInOutEasing quarticInOut
Quartic polynomial easing with strong acceleration and deceleration.
Definition easing.h:1183
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 only strong acceleration
quarticOut For only strong deceleration
cubicInOut For gentler motion
quinticInOut For more dramatic motion
Visualize at https://easings.net/#easeInOutQuart