{"id":262,"date":"2022-12-07T08:00:00","date_gmt":"2022-12-07T07:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=262"},"modified":"2023-08-30T10:38:16","modified_gmt":"2023-08-30T08:38:16","slug":"css-transition","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2022\/12\/07\/css-transition\/","title":{"rendered":"CSS Transition"},"content":{"rendered":"\n<p>Nach der Transformation geht es im Webdesign-Workshop mit der CSS Eigenschaft Transition weiter\u2026<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>Transition \u2013 Was ist das denn?<\/strong><\/p>\n\n\n\n<p>Mit den Transitions lassen sich per CSS interessante \u00dcbergangseffekte realisieren. Mouseovers und Farb- oder Objekt\u00e4nderungen f\u00fcr ausgew\u00e4hlte Elemente der Webseite\u2026<\/p>\n\n\n\n<p>F\u00fcr die folgenden Experimente macht es Sinn eine neue Datei zu erstellen (Kopiervorlage nutzen) und dann wieder eine Box erzeugen\u2026<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>&lt;p&gt;<\/p>\n\n\n\n<p>&lt;div id=\u201cbox1\u2033&gt;<\/p>\n\n\n\n<p>&lt;\/div&gt;<\/p>\n\n\n\n<p>&lt;\/p&gt;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Transition 1 mit Hover-Effekt:<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Per CSS kommt dann die Transition dazu:<\/p>\n\n\n\n<p>#box1 {<\/p>\n\n\n\n<p>width: 100px;<\/p>\n\n\n\n<p>height: 100px;<\/p>\n\n\n\n<p>background: red;<\/p>\n\n\n\n<p>-webkit-transition: width 2s; \/* Safari *\/<\/p>\n\n\n\n<p>transition: width 2s;<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>#box1:hover {<\/p>\n\n\n\n<p>width: 300px;<\/p>\n\n\n\n<p>height: 100px;<\/p>\n\n\n\n<p>background: red;<\/p>\n\n\n\n<p>-webkit-transition: width 2s; \/* Safari *\/<\/p>\n\n\n\n<p>transition: width 2s;<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p><strong>Transition 2 mit Hover und Farbwechsel:<\/strong><\/p>\n\n\n\n<p>F\u00fcr eine Box 2 kann folgendes CSS probiert werden\u2026:<\/p>\n\n\n\n<p>#box2 {<\/p>\n\n\n\n<p>width: 100px;<\/p>\n\n\n\n<p>height: 100px;<\/p>\n\n\n\n<p>background: red;<\/p>\n\n\n\n<p>-webkit-transition: width 2s; \/* Safari *\/<\/p>\n\n\n\n<p>transition: width 2s;<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>#box2:hover {<\/p>\n\n\n\n<p>width: 300px;<\/p>\n\n\n\n<p>height: 100px;<\/p>\n\n\n\n<p>background: green;<\/p>\n\n\n\n<p>-webkit-transition: width 2s; \/* Safari *\/<\/p>\n\n\n\n<p>transition: width 2s;<\/p>\n\n\n\n<p>transition-delay: 1s;<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>Die Boxen ver\u00e4ndern beim Mouse-Over ihre Gr\u00f6\u00dfe. Die zweite Box sogar die Farbe und das mit Zeitverz\u00f6gerung\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nach der Transformation geht es im Webdesign-Workshop mit der CSS Eigenschaft Transition weiter\u2026<\/p>\n","protected":false},"author":1,"featured_media":53,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[23],"class_list":["post-262","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webdesign","tag-webdesign-gruppe-peine"],"_links":{"self":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/comments?post=262"}],"version-history":[{"count":12,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":297,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions\/297"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media\/53"}],"wp:attachment":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}