/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/utils/menu-controller/animations/base.ts
22 строки
890 B
Liam DeBeasi
chore(deps): update to stencil v3 (#26663)
01 фев 2023, 02:07
Не верифицирован
01 фев 2023, 02:07
1a8bd6d
Код
Авторство
О чём код?
import { createAnimation } from '../../animation/animation'; import type { Animation } from '../../animation/animation-interface'; /** * baseAnimation * Base class which is extended by the various types. Each * type will provide their own animations for open and close * and registers itself with Menu. */ export const baseAnimation = (isIos: boolean): Animation => { // https://material.io/guidelines/motion/movement.html#movement-movement-in-out-of-screen-bounds // https://material.io/guidelines/motion/duration-easing.html#duration-easing-natural-easing-curves /** * "Apply the sharp curve to items temporarily leaving the screen that may return * from the same exit point. When they return, use the deceleration curve. On mobile, * this transition typically occurs over 300ms" -- MD Motion Guide */ return createAnimation().duration(isIos ? 400 : 300); };