Skip to content

CSS: transition

.instui-transition.-transition-fade-entering — Классы состояний анимации для компонента Transition.instui-transition и классы состояния (-transition-fade-entering, -transition-scale-exited и т.д.) — применимы отдельно или в цепочке к любому компоненту.

Source: transition.css

Использование

css
@import "@pantoken/components/utilities.css";

Примеры

html
<div class="instui-transition -transition-fade-entering">Animated content</div>

Модификаторы

МодификаторОписание
.-transition-*Тип перехода/класс состояния, переключаемый во время выполнения (fade|scale|slide-* + entering|entered|exiting|exited).
.-transition-fade-entered
.-transition-fade-entering
.-transition-fade-exited
.-transition-fade-exiting
.-transition-scale-entered
.-transition-scale-entering
.-transition-scale-exited
.-transition-scale-exiting
.-transition-slide-down-entered
.-transition-slide-down-entering
.-transition-slide-down-exited
.-transition-slide-down-exiting
.-transition-slide-left-entered
.-transition-slide-left-entering
.-transition-slide-left-exited
.-transition-slide-left-exiting
.-transition-slide-right-entered
.-transition-slide-right-entering
.-transition-slide-right-exited
.-transition-slide-right-exiting
.-transition-slide-up-entered
.-transition-slide-up-entering
.-transition-slide-up-exited
.-transition-slide-up-exiting

Пользовательские свойства

СвойствоТипПо умолчаниюОписание
--duration<time>300msДлительность анимации (по умолчанию 300ms); переопределите, чтобы ускорить или замедлить все состояния перехода.
--timing*ease-in-outФункция тайминга анимации (по умолчанию ease-in-out).