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

◆ quinticIn

detail::quinticInEasing quinticIn {}
inlineconstexpr

Quintic polynomial easing (t⁵) with very strong acceleration.

The quinticIn easing function uses a power-5 curve, creating the strongest polynomial acceleration. It's more extreme than quartic but less than exponential.

Characteristics:

  • Very strong acceleration
  • Polynomial with power of 5
  • Extremely slow start
  • Dramatic finish

This easing is ideal for:

  • Maximum polynomial emphasis: Strongest polynomial option
  • Dramatic effects: Hero animations, focal transitions
  • Long animations: Over 600ms durations
  • Alternative to exponential: Slightly less extreme

Mathematically: f(t) = t⁵

// Dramatic hero section reveal
auto scale = tweeny::from(0.0f)
.to(1.0f)
.during(60U)
.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::quinticInEasing quinticIn
Quintic polynomial easing (t⁵) with very strong acceleration.
Definition easing.h:1220
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
quinticOut For very strong deceleration
quinticInOut For very strong motion at both ends
quarticIn For slightly gentler acceleration
exponentialIn For even more extreme acceleration
Visualize at https://easings.net/#easeInQuint