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).