|
Tweeny 4.1.0
A Tweening library for modern C++
|
◆ bounceInOut
Bounce easing with bouncing at both start and end. The bounceInOut easing function combines reverse bouncing at the start with natural bouncing at the end. The motion bounces with increasing height initially, accelerates through the middle, then bounces to rest at the target. Motion profile:
This easing is appropriate for:
BounceInOut is quite dramatic and can feel excessive for business applications, productivity tools, and enterprise software where subtlety is preferred. The dual bouncing works best in contexts where playfulness is a design goal. // Playful modal transition
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::bounceInOutEasing bounceInOut Bounce easing with bouncing at both start and end. Definition easing.h:298 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
|