Type module
Sources
Items from Ease can be imported/included and used via following ways.
/** * -------------------------------------------------------- * Import via main package: core.ts * Access items like: am5.ease.myVariable * am5.ease.myFunction() * -------------------------------------------------------- */ import * as am5 from "@amcharts/amcharts5"; /** * -------------------------------------------------------- * Import via: Ease.ts * Access items like: $ease.myVariable * $ease.myFunction() * -------------------------------------------------------- */ import * as $ease from "@amcharts/amcharts5/Ease";
/** * -------------------------------------------------------- * Include via "index.js" * E.g.: "https://cdn.amcharts.com/lib/5/index.js" * Access items like: am5.ease.myVariable * am5.ease.myFunction() * -------------------------------------------------------- */
Variables
Ease does not have any variables.
Functions
|
bounce( t: ) |
Returns Bounces at the start before heading to the end. |
|---|---|
|
byName( name?: ) |
Returns Returns the easing function called @since 5.20.8 |
|
circle( t: ) |
Returns Starts slowly and speeds up steeply near the end, following a quarter circle. |
|
cubic( t: ) |
Returns Starts slowly and speeds up, more sharply than |
|
easingInfo( easing: ) |
Returns Returns what an easing function is, by name, or @since 5.20.8 |
|
elastic( t: ) |
Returns Swings back and forth with growing swings before reaching the end, like a spring. |
|
exp( t: ) |
Returns Barely moves at first, then speeds up sharply (exponential). |
|
inOut( ease: ) |
Returns Applies an easing at both ends: it eases in for the first half and out for the second. |
|
linear( t: ) |
Returns No easing: the animation runs at a constant speed. |
|
named( easing: ) |
Returns |
|
out( ease: ) |
Returns Turns an easing around, so it starts fast and ends slowly. The easings here ease in (start slowly) unless wrapped in |
|
pow( t: ) |
Returns Raises progress to the power |
|
quad( t: ) |
Returns Starts slowly and speeds up (progress squared). |
|
sine( t: ) |
Returns Starts gently and speeds up, following a sine curve. |
|
yoyo( ease: ) |
Returns Makes an easing go there and back: it reaches the end halfway through and returns to the start. |