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

◆ quadraticOut

detail::quadraticOutEasing quadraticOut {}
inlineconstexpr

Quadratic polynomial easing (t²) with gentle deceleration.

The quadraticOut easing function provides subtle, smooth deceleration. It's the gentlest polynomial easing, perfect when you want polish without drama.

Characteristics:

  • Gentle, smooth deceleration
  • Subtle but professional feel
  • Never feels too slow or too fast
  • Safe choice for any context

This easing excels at:

  • Subtle UI polish: Adding refinement without drawing attention
  • Fast animations: 100-200ms durations
  • Minimal interfaces: Clean, understated design systems
  • Accessibility-friendly: Gentle motion reduces disorientation
  • Background animations: Motion that shouldn't distract

QuadraticOut is great when you want animations to stay out of the way. It's less dramatic than cubic but smoother than linear due to gradual deceleration.

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

// Subtle tooltip appearance
auto opacity = tweeny::from(0.0f)
.to(1.0f)
.during(15U)
.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::quadraticOutEasing quadraticOut
Quadratic polynomial easing (t²) with gentle deceleration.
Definition easing.h:1033
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
quadraticIn For gentle acceleration
quadraticInOut For gentle motion at both ends
cubicOut For more pronounced deceleration
Visualize at https://easings.net/#easeOutQuad