Skip to content

CSS: transition ​

.instui-transition.-transition-fade-entering — Klas eta animasyon pou konpozan Transition — .instui-transition ak klas eta (-transition-fade-entering, -transition-scale-exited, elatriye) — ka itilize sèl oswa chenn sou nenpòt konpozan.

Source: transition.css

Itilizasyon ​

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

Egzanp ​

html
<div class="instui-transition -transition-fade-entering">Kontni anime</div>

Modifikatè ​

ModifikatèDeskripsyon
.-transition-*Kalite tranzisyon/klas eta ki chanje pa tan-ekzekisyon (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—

Pwopriyete koutim ​

PwopriyeteTipPa defoDeskripsyon
--duration<time>300msDire animasyon (default 300ms); ranplase pou fè chak tranzisyon pi rapid oswa pi dousman.
--timing*ease-in-outFonksyon tan animasyon (default ease-in-out).