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

◆ quinticInOut

detail::quinticInOutEasing quinticInOut {}
inlineconstexpr

Quintic polynomial easing with very strong acceleration and deceleration.

The quinticInOut easing function provides the strongest polynomial S-curve, creating powerful motion with maximum polynomial emphasis.

Motion profile:

  • First half: Very strong acceleration (t⁵)
  • Midpoint: Maximum velocity
  • Second half: Very strong deceleration
  • Creates dramatic S-curve

This easing is appropriate for:

  • Applications prioritizing strong visual emphasis: Galleries, portfolios, marketing sites
  • Animations requiring maximum polynomial emphasis: At both acceleration and deceleration phases
  • Important transitions: Focal, memorable moments
  • Longer animations: 500ms+ durations

Mathematically: Combines quinticIn for t < 0.5 and quinticOut for t >= 0.5

// Premium screen transition
auto x = tweeny::from(0.0f)
.to(1920.0f)
.during(50U)
.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::quinticInOutEasing quinticInOut
Quintic polynomial easing with very strong acceleration and deceleration.
Definition easing.h:1298
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
quinticIn For only very strong acceleration
quinticOut For only very strong deceleration
quarticInOut For gentler motion
exponentialInOut For more extreme motion
Visualize at https://easings.net/#easeInOutQuint