From 4b1a9203c547c019fc5398082ae19a3f3d4c3efe Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:15 -0500 Subject: initial commit --- files/de/web/css/transition/index.html | 104 +++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 files/de/web/css/transition/index.html (limited to 'files/de/web/css/transition') diff --git a/files/de/web/css/transition/index.html b/files/de/web/css/transition/index.html new file mode 100644 index 0000000000..89a4533cdc --- /dev/null +++ b/files/de/web/css/transition/index.html @@ -0,0 +1,104 @@ +--- +title: transition +slug: Web/CSS/transition +tags: + - CSS + - CSS Eigenschaft + - CSS Transitions + - Referenz +translation_of: Web/CSS/transition +--- +
{{CSSRef}}
+ +

Die transition CSS Eigenschaft ist eine Kurzschreibweise für {{ cssxref("transition-property") }}, {{ cssxref("transition-duration") }}, {{ cssxref("transition-timing-function") }} und {{ cssxref("transition-delay") }}.

+ +
{{EmbedInteractiveExample("pages/css/transition.html")}}
+ + + +

Übergänge erlauben Ihnen, den Übergang zwischen zwei Stati eines Elements zu betimmen. Verschiedene Stati können etwa durch das Nutzen von pseudo-classes wie {{cssxref(":hover")}} oder {{cssxref(":active")}} bestimmt oder dynamisch durch JavaScript gesetzt werden.

+ +

Syntax

+ +
/* Apply to 1 property */
+/* property name | duration */
+transition: margin-right 4s;
+
+/* property name | duration | delay */
+transition: margin-right 4s 1s;
+
+/* property name | duration | timing function */
+transition: margin-right 4s ease-in-out;
+
+/* property name | duration | timing function | delay */
+transition: margin-right 4s ease-in-out 1s;
+
+/* Apply to 2 properties */
+transition: margin-right 4s, color 1s;
+
+/* Apply to all changed properties */
+transition: all 0.5s ease-out;
+
+/* Global values */
+transition: inherit;
+transition: initial;
+transition: unset;
+
+ +

Die transition Eigenschaft wird durch eine einzelne Eigenschaft oder durch mehrere Eigenschaften von transitions ausgezeichnet. Mehrere Eigenschaften müssen durch Kommas getrennt werden.

+ +

Jede einzelne transition Eigenschaft beschreibt die transition, die auf eine einzelne Eigenschaft (oder die speziellen Werte all und none) angewandt werden soll. Das bezieht mit ein:

+ + + +

Sehen Sie wie Dinge gehandhabt werden, wenn die Liste der Eigenschaftswerte nicht unterschiedliche Länge haben. Die Kurzfassung ist, dass zusätzliche transition Beschreibungen ignoriert werden, wenn sie die Anzahl der Eigenschaften überschreiten.

+ +

Formale Syntax

+ +
{{csssyntax}}
+ +

Beispiele

+ +

Es gibt viele weitere Beispiele über CSS transitions in dem Hauptartikel über CSS transitions.

+ +

Spezifikationen

+ + + + + + + + + + + + + + + + +
SpezifikationStatusKommentar
{{ SpecName('CSS3 Transitions', '#transition-shorthand-property', 'transition') }}{{ Spec2('CSS3 Transitions') }}Ursprüngliche Definition
+ +

Browserkompatibilität

+ + + +

{{Compat("css.properties.transition")}}

+ +

Siehe auch

+ + -- cgit v1.2.3-54-g00ecf