easing
Easing function for rotating animation.
EASING.EASE_OUT_CUBIC is applied by default.
Example
import View360, { EASING } from "@egjs/view360";
const view360 = new View360("#el_id", {
rotate: {
easing: EASING.LINEAR
}
})
Below is an example of applying EASING.LINEAR.
Below is an example of applying EASING.EASE_OUT_BOUNCE.
You can also make your own easing function and use it.
Type is (x: number) => number
, x comes in between 0 and 1, function should return 0 when x = 0, and 1 when x = 1.