<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" >

<channel>
	<title>TRIBOOT Technologies GmbH</title>
	<atom:link href="https://triboot.de/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>https://triboot.de</link>
	<description>Ihre erfahrene App Agentur für mobile App- und Softwareentwicklung</description>
	<lastBuildDate>Sat, 09 May 2026 12:23:02 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<itunes:subtitle>TRIBOOT Technologies GmbH</itunes:subtitle>
	<itunes:summary>Ihre erfahrene App Agentur für mobile App- und Softwareentwicklung</itunes:summary>
	<itunes:explicit>false</itunes:explicit>
	<item>
		<title>3D-Effekt mit HTML und JavaScript &#8211; Coole Bewegung in Bildern!</title>
		<link>https://triboot.de/blog/3d-effekt-mit-html-und-javascript/</link>
		
		<dc:creator><![CDATA[Issa Pourgholam]]></dc:creator>
		<pubDate>Tue, 25 Feb 2020 22:04:33 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Effekte]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://triboot.de/?p=7786</guid>

					<description><![CDATA[In diesem Tutorial zeigen wir dir, wie man in kürzester Zeit etwas Bewegung in ein statisches 2D Bild bekommt. Ein 3D-Effekt mit HTML und JavaScript.]]></description>
										<content:encoded><![CDATA[<p><section id="bt_bb_section6a430d7c591b8"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-12 col-xl-12 col-xs-12 col-sm-12 col-md-12 col-lg-12 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:12;" data-width="12" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_raw_content">[lwptoc]</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c5942f"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div id="container" class="bt_bb_column col-xxl-12 col-xl-12 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:12;" data-width="12" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div  class="bt_bb_text" ></p>
<p>
<strong>3D-Effekt mit HTML und JavaScript</strong></p>
<p>
</div><div class="bt_bb_raw_content"><script  src="https://pixijs.download/v5.1.5/pixi.min.js"></script>

<script>
function run() {
    console.log("app is running");
    let container = document.querySelector("#container");

    let heightFactor = 0.4;
    let vmin = window.innerHeight < window.innerWidth ? window.innerHeight : window.innerWidth;
 

    let app = new PIXI.Application({
        width: container.clientWidth,
        height: vmin * heightFactor
    });

    container.appendChild(app.view);

    let img = new PIXI.Sprite.from("https://triboot.de/wp-content/uploads/2019/10/star-wars.jpg");
    img.width = container.clientWidth;
    img.height = vmin * heightFactor;
    app.stage.addChild(img);

    depthMap = new PIXI.Sprite.from("https://triboot.de/wp-content/uploads/2019/10/star-wars-map.jpg");
    depthMap.width = container.clientWidth;
    depthMap.height = window.innerHeight * heightFactor;
    app.stage.addChild(depthMap);

    displacementFilter = new PIXI.filters.DisplacementFilter(depthMap);
    displacementFilter.scale.x = 1;
    displacementFilter.scale.y = 1;
    app.stage.filters = [displacementFilter];

    container .addEventListener("mousemove", (e) => {
        displacementFilter.scale.x = (container.clientWidth / 2 - e.clientX) / 40;
        displacementFilter.scale.y = (vmin * heightFactor / 2 - e.clientY) / 40;
    });

    container .addEventListener("touchmove", (e) => {
//console.log(e);
        displacementFilter.scale.x = (container.clientWidth / 2 - e.touches[0].clientX) / 200;
        displacementFilter.scale.y = (vmin / 2 - e.touches[0].clientY) / 200;
    });
}

window.addEventListener("load", run);

</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c59644"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-12 col-xl-12 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:12;" data-width="12" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div  class="bt_bb_text" ></p>
<p>
<strong>Schwierigkeitsgrad: Fortgeschritten</strong><br />
<strong>Zeit: ca. 30 Min.</strong></p>
<p>In diesem Tutorial zeigen wir dir, wie man in kürzester Zeit etwas Bewegung in ein statisches 2D Bild bekommt. Um einen 3D-Effekt mit HTML und JavaScript in dein Bild zu zaubern, benötigst du die kostenlose Library <a href="https://www.pixijs.com/" target="_blank" rel="noopener">PixiJS</a> und ein wenig Geschick im Umgang mit einem Bildbearbeitungsprogramm.</p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c597ff"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span><b>API</b> vorbereiten</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Erstelle zunächst einen neuen Projektordner mit folgender Dateistruktur: assets-Ordner für die Bilder, index.html, pixi.min.js, script.js und style.css.</p>
<p>In die index.html Datei schreibst du den rechts stehenden Basis-Code.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="html_code" class="bt_bb_text" ></p>
<div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("html_code", "html");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c59c8e"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>CSS <b>einrichten</b></span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Damit sich das Bild später vollständig an die Breite und Höhe des Bildschirms anpassen kann, machst du folgende Angaben in der CSS-Datei.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="css_code1" class="bt_bb_text" ></p>
<div>
<div>html,</div>
<div>body {</div>
<div>    width: 100%;</div>
<div>    height: 100%;</div>
<div>    margin: 0;</div>
<div>    padding: 0;</div>
<div>}</div>
</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("css_code1", "css");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c5a012"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span><b>PixiJS</b> herunterladen</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Gehe nun auf <a href="https://github.com/pixijs/pixi.js/releases" target="_blank" rel="noopener">https://github.com/pixijs/pixi.js/releases</a>  und klicke  unter Production Build auf die neueste pixi.min.js Version. Markiere den gesamten Code mit Strg + A und füge ihn in deinem Projekt in die pixi.min.js Datei ein. In die index.html Datei eingebunden ist sie ja bereits.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c5a2ce"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span><b>JavaScript</b> 1 erstellen</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Per JavaScript legen wir nun fest, auf welche Weise sich der 3D-Effekt auf unser Bild auswirken soll. Zunächst erstellen wir eine PixiJS Application. Die Auflösung passen wir mit der Zuweisung von window.innerWidth und window.innerHeight an die des Anzeigegerätes an. Dann fügen wir die Application der HTML-Seite hinzu, welche diese als neues Canvas Element erkennt. Von unserem Bild erzeugen wir nun ein Sprite und passen dieses an Höhe und Breite des Bildschirms an. Anschließend fügen wir es der Stage hinzu.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="js_code" class="bt_bb_text" ></p>
<div>
<div>let app = new PIXI.Application({</div>
<div>    width: window.innerWidth,</div>
<div>    height: window.innerHeight</div>
<div>});</div>
<div>document.body.appendChild(app.view);</div>
<div>let img = new PIXI.Sprite.from(„assets/star-wars.jpg“);</div>
<div>img.width = window.innerWidth;</div>
<div>img.height = window.innerHeight;</div>
<div>app.stage.addChild(img);</div>
</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("js_code", "js");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c5a67d"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Erstellen der Depth Map mit Hilfe eines <b>Bildbearbeitungsprogrammes</b></span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>Nun müssen wir von unserem Bild eine Depth Map erstellen. Dafür brauchst du ein Bildbearbeitungsprogramm, wie z.B. das frei erhältliche <a href="https://www.gimp.org/" target="_blank" rel="noopener">Gimp</a>. In unserem Beispiel wurde Adobe Photoshop dafür verwendet.</p>
<p>Nachdem du das Bild geladen hast, erstellst du eine neue Ebene und füllst diese komplett mit 100% schwarz aus. Setz die Opacity dieser Ebene auf 70%, damit du dein Bild darunter als Vorlage sehen kannst. Stell Weiß als Vordergrundfarbe ein, wähle als Werkzeug einen Pinsel mit weicher Spitze und setz die Opacity auf 20%. Beginne nun die Formen markanter Bildinhalte nachzuzeichnen. Es gilt, je weiter vorne sich etwas im Bild befindet, umso heller muss es sein. Gehe also ruhig mehrfach mit dem Pinsel über solche Bereiche, um sie heller zu bekommen. Hast du einmal über eine Stelle zu weit drüber gemalt, nimm´ einfach Schwarz als Vordergrundfarbe, stell die Opacity des Pinsels wieder auf 100% und besser die übermalten Teile des Bildes damit aus.</p>
<p>Da mit dieser Technik der Eindruck eines 3D-Effektes erzeugt werden soll, ist es besonders wichtig, dem Bild durch eine entsprechende Staffelung der Graustufen die nötige Tiefenwirkung zu verleihen (Vorder-, Mittel-, Hintergrund). Nicht jedes Bild ist für diesen Effekt gleichermaßen gut geeignet und es erfordert ggf. etwas Geschick und Experimentierfreude, bis sich die gewünschte Wirkung einstellt.</p>
<p>Hast du die Map fertiggestellt, muss das gesamte Bild mit einem leichten Blur-Effekt versehen werden. Wir haben uns für den Gaußschen Weichzeichner mit einem Radius von 10 Pixeln entschieden. Damit vermeidest du scharfe Kanten und die Übergänge zwischen den verschiedenen Ebenen werden weicher und sehen natürlicher aus.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_image bt_bb_shape_square bt_bb_target_blank bt_bb_align_inherit bt_bb_hover_style_zoom-in bt_bb_content_display_always bt_bb_content_align_middle" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;" data-bt-override-class="{}"><a href="https://triboot.de/wp-content/uploads/2019/10/depth-map-1.jpg" target="_blank" title="depth-map-1"><img fetchpriority="high" decoding="async" width="960" height="520" src="https://triboot.de/wp-content/uploads/2019/10/depth-map-1.jpg" class="attachment-large size-large" alt="Depth map für einen 3D-Effekt mit JavaScript" data-full_image_src="https://triboot.de/wp-content/uploads/2019/10/depth-map-1.jpg" title="depth-map-1" loading="eager" srcset="https://triboot.de/wp-content/uploads/2019/10/depth-map-1.jpg 960w, https://triboot.de/wp-content/uploads/2019/10/depth-map-1-640x347.jpg 640w, https://triboot.de/wp-content/uploads/2019/10/depth-map-1-768x416.jpg 768w, https://triboot.de/wp-content/uploads/2019/10/depth-map-1-320x173.jpg 320w" sizes="(max-width: 960px) 100vw, 960px" /></a></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div class="bt_bb_image bt_bb_shape_square bt_bb_target_blank bt_bb_align_inherit bt_bb_hover_style_zoom-in bt_bb_content_display_always bt_bb_content_align_middle" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;" data-bt-override-class="{}"><a href="https://triboot.de/wp-content/uploads/2019/10/depth-map-2.jpg" target="_blank" title="depth-map-2"><img decoding="async" width="960" height="520" src="https://triboot.de/wp-content/uploads/2019/10/depth-map-2.jpg" class="attachment-large size-large" alt="Depth map für einen 3D-Effekt mit JavaScript" data-full_image_src="https://triboot.de/wp-content/uploads/2019/10/depth-map-2.jpg" title="depth-map-2" loading="eager" srcset="https://triboot.de/wp-content/uploads/2019/10/depth-map-2.jpg 960w, https://triboot.de/wp-content/uploads/2019/10/depth-map-2-640x347.jpg 640w, https://triboot.de/wp-content/uploads/2019/10/depth-map-2-768x416.jpg 768w, https://triboot.de/wp-content/uploads/2019/10/depth-map-2-320x173.jpg 320w" sizes="(max-width: 960px) 100vw, 960px" /></a></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div class="bt_bb_image bt_bb_shape_square bt_bb_target_blank bt_bb_align_inherit bt_bb_hover_style_zoom-in bt_bb_content_display_always bt_bb_content_align_middle" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;" data-bt-override-class="{}"><a href="https://triboot.de/wp-content/uploads/2019/10/depth-map-3.jpg" target="_blank" title="depth-map-3"><img decoding="async" width="960" height="520" src="https://triboot.de/wp-content/uploads/2019/10/depth-map-3.jpg" class="attachment-large size-large" alt="Depth map für einen 3D-Effekt mit JavaScript" data-full_image_src="https://triboot.de/wp-content/uploads/2019/10/depth-map-3.jpg" title="depth-map-3" loading="eager" srcset="https://triboot.de/wp-content/uploads/2019/10/depth-map-3.jpg 960w, https://triboot.de/wp-content/uploads/2019/10/depth-map-3-640x347.jpg 640w, https://triboot.de/wp-content/uploads/2019/10/depth-map-3-768x416.jpg 768w, https://triboot.de/wp-content/uploads/2019/10/depth-map-3-320x173.jpg 320w" sizes="(max-width: 960px) 100vw, 960px" /></a></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p style="text-align: left;"><em>Schritt für Schritt wird die Depth Map erstellt und am Ende im assets-Ordner gespeichert.</em></p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c5b9bc"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span><b>JavaScript</b> erstellen</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Nun erstellen wir auch von der Depth Map ein Sprite, passen dieses an Höhe und Breite des Bildschirms an und fügen es der Stage hinzu. Danach  erzeugen wir einen Displacement-Filter von unserer Depth Map und übergeben diesen ebenfalls an die Stage. Noch ist kein 3D-Effekt zu sehen, da wir erst noch die Bewegung der Maus mit dem Bild verknüpfen müssen. Hierfür nutzen wir den Mousemove-Listener und skalieren den Displacement-Filter gemäß der Mausposition. Wir müssen die x- und y-Position der Maus um die Hälfte der Bildschirmgröße verringern, um den Nullpunkt der Maus von links oben in die Mitte des Bildschirms zu versetzen. So ist eine gleichmäßige Verschiebung des Bildes in alle Richtungen möglich und es entsteht die Illusion einer dreidimensionalen Bewegung. Das Ergebnis wird noch einmal dividiert. Mit diesem Wert (in unserem Beispiel steht er auf 40) stellst du sie Sensibilität der Maus ein.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="js_code2" class="bt_bb_text" ></p>
<div>
<div>depthMap = new PIXI.Sprite.from(„assets/star-wars-map.jpg“);</div>
<div>depthMap.width = window.innerWidth;</div>
<div>depthMap.height = window.innerHeight;</div>
<div>app.stage.addChild(depthMap);</div>
<div>displacementFilter = new PIXI.filters.DisplacementFilter(depthMap);</div>
<div>app.stage.filters = [displacementFilter];</div>
<div>window.addEventListener(„mousemove“, (e) => {</div>
<div>    displacementFilter.scale.x = (window.innerWidth / 2 – e.clientX) / 40;</div>
<div>    displacementFilter.scale.y = (window.innerHeight / 2 – e.clientY) / 40;</div>
<div>});</div>
</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("js_code2", "js");
</script></div></div></div></div></div></div></div></div></div></section><section data-bb-version="4.7.1" id="bt_bb_section6a430d7c5c06e"  class="bt_bb_section bt_bb_layout_boxed_1200 bt_bb_vertical_align_top bt_bb_background_image bt_bb_top_spacing_ bt_bb_bottom_spacing_small bt_bb_hidden_xs bt_bb_hidden_ms bt_bb_hidden_sm" style="background-image:url(&#039;https://triboot.de/wp-content/uploads/2023/10/CTA-Banner.jpg&#039;);"    data-bt-override-class="{&quot;bt_bb_top_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_top_spacing_&quot;,&quot;def&quot;:&quot;&quot;},&quot;bt_bb_bottom_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_bottom_spacing_small&quot;,&quot;def&quot;:&quot;small&quot;}}"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div data-bb-version="4.7.0"  class="bt_bb_column col-xxl-6 col-xl-6 col-xs-12 col-sm-6 col-md-6 col-lg-6 bt_bb_vertical_align_bottom bt_bb_align_center bt_bb_padding_none" style="; --column-width:6;" data-width="6" data-bt-override-class="{&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_center&quot;,&quot;def&quot;:&quot;center&quot;},&quot;bt_bb_padding_&quot;:{&quot;current_class&quot;:&quot;bt_bb_padding_none&quot;,&quot;def&quot;:&quot;none&quot;}}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div data-bb-version="4.7.0" class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_large bt_bb_bottom_spacing_extra_large" data-bt-override-class="{&quot;bt_bb_top_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_top_spacing_large&quot;,&quot;def&quot;:&quot;large&quot;},&quot;bt_bb_bottom_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_bottom_spacing_extra_large&quot;,&quot;def&quot;:&quot;extra_large&quot;}}"></div><div data-bb-version="4.7.0"  class="bt_bb_text" ></p>
<p>
Sie möchten mehr über Preise, Möglichkeiten und die Umsetzung von <a href="https://triboot.de/app-entwicklung/"><b>App Anwendungen </b></a>in Ihrem Unternehmen erfahren? Dann sind Sie bei uns genau richtig.</p>
<p>
</div><div data-bb-version="4.7.0" class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small bt_bb_bottom_spacing_small" data-bt-override-class="{&quot;bt_bb_top_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_top_spacing_small&quot;,&quot;def&quot;:&quot;small&quot;},&quot;bt_bb_bottom_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_bottom_spacing_small&quot;,&quot;def&quot;:&quot;small&quot;}}"></div><div data-bb-version="4.7.2" class="bt_bb_button accent bt_bb_color_scheme_2 bt_bb_icon_position_left bt_bb_style_filled bt_bb_size_normal bt_bb_width_inline bt_bb_shape_inherit bt_bb_target_self bt_bb_text_transform_inherit bt_bb_align_inherit" style="; --primary-color:#181818; --secondary-color:#ffffff;" data-bt-override-class="{&quot;bt_bb_size_&quot;:{&quot;current_class&quot;:&quot;bt_bb_size_normal&quot;,&quot;def&quot;:&quot;normal&quot;},&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_inherit&quot;,&quot;def&quot;:&quot;inherit&quot;}}"><a href="https://triboot.de/kontakt/" target="_self" class="bt_bb_link" title="Kontaktieren Sie uns unverbindlich"><span class="bt_bb_button_text" >Kontaktieren Sie uns unverbindlich</span><span  data-ico-fontawesome="&#xf274;" class="bt_bb_icon_holder"></span></a></div></div></div></div><div data-bb-version="4.6.1"  class="bt_bb_column col-xxl-6 col-xl-6 col-xs-12 col-sm-6 col-md-6 col-lg-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_none bt_bb_animation_fade_in zoom_out animate" style="; --column-width:6;" data-width="6" data-bt-override-class="{&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_center&quot;,&quot;def&quot;:&quot;center&quot;},&quot;bt_bb_padding_&quot;:{&quot;current_class&quot;:&quot;bt_bb_padding_none&quot;,&quot;def&quot;:&quot;none&quot;}}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"></div></div></div></div></div></div></div></div></section></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>UI Design Tutorial &#8211; 7 wichtige Grundlagen für UI Design</title>
		<link>https://triboot.de/blog/ui-design-tutorial/</link>
		
		<dc:creator><![CDATA[Issa Pourgholam]]></dc:creator>
		<pubDate>Tue, 08 Oct 2019 15:52:56 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Entwurf]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[UX]]></category>
		<guid isPermaLink="false">https://triboot.de/?p=7496</guid>

					<description><![CDATA[In diesem UI Design Tutorial lernst du die wichtigsten Gestaltungsgrundlagen kennen und worauf es ankommt beim Entwurf eines modernen UI Designs.]]></description>
										<content:encoded><![CDATA[<p><section id="bt_bb_section6a430d7c638cb"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-12 col-xl-12 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:12;" data-width="12" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div  class="bt_bb_text" ></p>
<p>
Beachtet man beim Erstellen von Web-Applikationen ein paar einfache Gestaltungsregeln, so lassen sich in kürzester Zeit sehr ansprechende und moderne Designs erstellen. In unserem UI Design Tutorial kannst du dieses Basiswissen erlernen und auf deine eigenen Anwendungen übertragen.</p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c63b9f"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-12 col-xl-12 col-xs-12 col-sm-12 col-md-12 col-lg-12 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:12;" data-width="12" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_raw_content">[lwptoc]</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c63d1e"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Roter Faden</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Bevor man den Zeichenstift, oder in unserem Fall die Maus bzw. den Pen, in die Hand nimmt, sollte man sich ein paar grundsätzliche Fragen stellen: Welches Thema hat meine Seite? Welche Informationen soll der User bekommen? Wie gliedere ich die Inhalte? Wie gestalte ich den Informationsfluss hierarchisch sinnvoll.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_image bt_bb_shape_square bt_bb_target_blank bt_bb_align_inherit bt_bb_hover_style_zoom-in bt_bb_content_display_always bt_bb_content_align_middle" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;" data-bt-override-class="{}"><a href="https://triboot.de/wp-content/uploads/2019/10/Canva-Person-Writing-on-Board.jpg" target="_blank" title="Canva---Person-Writing-on-Board"><img decoding="async" width="1200" height="800" src="https://triboot.de/wp-content/uploads/2019/10/Canva-Person-Writing-on-Board-1280x853.jpg" class="attachment-large size-large" alt="Person, die an Bord schreibt" data-full_image_src="https://triboot.de/wp-content/uploads/2019/10/Canva-Person-Writing-on-Board.jpg" title="Canva---Person-Writing-on-Board" loading="eager" srcset="https://triboot.de/wp-content/uploads/2019/10/Canva-Person-Writing-on-Board-1280x853.jpg 1280w, https://triboot.de/wp-content/uploads/2019/10/Canva-Person-Writing-on-Board-640x427.jpg 640w, https://triboot.de/wp-content/uploads/2019/10/Canva-Person-Writing-on-Board-768x512.jpg 768w, https://triboot.de/wp-content/uploads/2019/10/Canva-Person-Writing-on-Board-320x213.jpg 320w, https://triboot.de/wp-content/uploads/2019/10/Canva-Person-Writing-on-Board.jpg 1920w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c64988"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Farben &amp; Kontrast</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Bei der Auswahl der Farben ist darauf zu achten, dass diese gut miteinander harmonieren und ein gewisser Kontrast zwischen ihnen besteht. Dies gilt sowohl für farbige Flächen, als auch für einzelne Elemente, wie Icons oder Logos, und insbesondere für die Schrift, da deren Lesbarkeit sehr stark davon abhängig ist.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_slider bt_bb_height_auto bt_bb_animation_fade animate" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;"><div class="slick-slider fade"  data-slick='{ "lazyLoad": "progressive", "cssEase": "ease-out", "speed": "300", "fade": true, "adaptiveHeight": true, "prevArrow": "&lt;button type=\"button\" class=\"slick-prev\" aria-label=\"Previous\" tabindex=\"0\" role=\"button\"&gt;&lt;/button&gt;", "nextArrow": "&lt;button type=\"button\" class=\"slick-next\" aria-label=\"Next\" tabindex=\"0\" role=\"button\"&gt;&lt;/button&gt;", "autoplay": true, "autoplaySpeed": 3000}' ><div class="bt_bb_slider_item" data-src-full="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-no-contrast.jpg"><img decoding="async" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-no-contrast.jpg" alt="mybrand-homepage-no-contrast"  title="mybrand-homepage-no-contrast"></div><div class="bt_bb_slider_item" data-src-full="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-good-contrast.jpg"><img decoding="async" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-good-contrast.jpg" alt="mybrand-homepage-good-contrast"  title="mybrand-homepage-good-contrast"></div></div></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p style="text-align: left;"><em>Die beiden Grüntöne sind zu ähnlich, um einen Kontrast bilden zu können. Auch das Weiß ist zu schwach, um sich von dem Grün abzuheben. Die Schrift ist daher kaum lesbar.</em></p>
<p style="text-align: left;"><em>Besser ist es <a href="https://de.wikipedia.org/wiki/Komplement%C3%A4rfarbe" target="_blank" rel="noopener">Komplementärfarben</a> zu nehmen, da diese sich vom Farbspektrum her sehr stark unterscheiden. Ein starker Hell-Dunkel-Kontrast zwischen Hintergrund und Schrift sorgt für gute Lesbarkeit.</em></p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c655c3"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Flächen und Abstände</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Mindestens genauso wichtig wie der Inhalt einer Gestaltung sind die Abstände zwischen den einzelnen Elementen. Sind diese zu groß, wirkt das Design leer, unvollständig und langweilig. Gibt es zu wenig freien Raum, entsteht der Eindruck von Enge und das Auge ermüdet schnell, da es sich nicht entspannen kann und die Orientierung schwer fällt.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_image bt_bb_shape_square bt_bb_target_blank bt_bb_align_inherit bt_bb_hover_style_zoom-in bt_bb_content_display_always bt_bb_content_align_middle" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;" data-bt-override-class="{}"><a href="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design1.jpg" target="_blank" title="mybrand-homepage-bad-design1"><img decoding="async" width="793" height="525" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design1.jpg" class="attachment-large size-large" alt="Beispiel für ein schlechtes UI Design" data-full_image_src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design1.jpg" title="mybrand-homepage-bad-design1" loading="eager" srcset="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design1.jpg 793w, https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design1-640x424.jpg 640w, https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design1-768x508.jpg 768w, https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design1-320x212.jpg 320w" sizes="(max-width: 793px) 100vw, 793px" /></a></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p style="text-align: left;"><em>Bei diesem Beispiel befinden sich zu viele Elemente auf engem Raum und die Abstände sind sehr unterschiedlich gewählt. Das macht es mühsam sich zu orientieren und das Design wirkt uneinheitlich.</em></p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div><div class="bt_bb_image bt_bb_shape_square bt_bb_target_blank bt_bb_align_inherit bt_bb_hover_style_zoom-in bt_bb_content_display_always bt_bb_content_align_middle" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;" data-bt-override-class="{}"><a href="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design2.jpg" target="_blank" title="mybrand-homepage-bad-design2"><img decoding="async" width="777" height="640" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design2.jpg" class="attachment-large size-large" alt="Beispiel für ein schlechtes UI Design 2" data-full_image_src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design2.jpg" title="mybrand-homepage-bad-design2" loading="eager" srcset="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design2.jpg 777w, https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design2-640x527.jpg 640w, https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design2-768x633.jpg 768w, https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-bad-design2-320x264.jpg 320w" sizes="(max-width: 777px) 100vw, 777px" /></a></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p style="text-align: left;"><em>Bei diesem Entwurf hingegen wurden die freien Flächen etwas zu großzügig angelegt. Auch hier sind die Abstände nicht einheitlich. Das Design wirkt zusammenhanglos und unfertig.</em></p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c66549"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Visuelle Hierarchie &amp; Größenverhältnisse</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Gehen wir in unserem UI Design Tutorial nun weiter ins Detail: Dinge die wichtig sind, sollten einem auch direkt ins Auge springen. Daher sollte für die Headline, welche das Thema der Seite beschreibt, eine entsprechende Größe und evtl. ein fetter Schriftschnitt gewählt werden. Die Subheadline muss deutlich kleiner sein, der Abstand zur Headline sollte allerdings nicht zu groß sein, damit der Zusammenhang zwischen beiden nicht verloren geht.</p>
<p>Ein roter Button wirkt natürlich wichtiger und dominanter als ein hellgrauer Button. Buttons sollten im Verhältnis zur Headline nicht zu groß sein, sondern sich dieser unterordnen.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_image bt_bb_shape_square bt_bb_target_blank bt_bb_align_inherit bt_bb_hover_style_zoom-in bt_bb_content_display_always bt_bb_content_align_middle" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;" data-bt-override-class="{}"><a href="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage.jpg" target="_blank" title="mybrand-homepage"><img decoding="async" width="777" height="906" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage.jpg" class="attachment-large size-large" alt="Beispiel für ein gelungenes UI Design" data-full_image_src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage.jpg" title="mybrand-homepage" loading="eager" srcset="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage.jpg 777w, https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-640x746.jpg 640w, https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-768x896.jpg 768w, https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-320x373.jpg 320w" sizes="(max-width: 777px) 100vw, 777px" /></a></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p style="text-align: left;"><em>Gute Design-Lösung: Die Inhalte sind klar gegliedert und die Abstände einheitlich gewählt, wodurch ein harmonisches Gesamtbild entsteht.</em></p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c66fd2"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Komplexität vs. Einfachheit</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Befinden sich zu viele verschiedene Elemente auf engem Raum, sieht die Seite schnell überladen und unübersichtlich aus. Auch mit Effekten, wie Verläufen, Unschärfe oder Schlagschatten, sollte man möglichst sparsam umgehen. Ansonsten wirkt das Design billig und nicht besonders hochwertig. Weniger ist oftmals mehr!</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_slider bt_bb_height_auto bt_bb_animation_fade animate" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;"><div class="slick-slider fade"  data-slick='{ "lazyLoad": "progressive", "cssEase": "ease-out", "speed": "300", "fade": true, "adaptiveHeight": true, "prevArrow": "&lt;button type=\"button\" class=\"slick-prev\" aria-label=\"Previous\" tabindex=\"0\" role=\"button\"&gt;&lt;/button&gt;", "nextArrow": "&lt;button type=\"button\" class=\"slick-next\" aria-label=\"Next\" tabindex=\"0\" role=\"button\"&gt;&lt;/button&gt;", "autoplay": true, "autoplaySpeed": 3000}' ><div class="bt_bb_slider_item" data-src-full="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-too-complex.jpg"><img decoding="async" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-too-complex.jpg" alt="mybrand-homepage-too-complex"  title="mybrand-homepage-too-complex"></div><div class="bt_bb_slider_item" data-src-full="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-less-is-more.jpg"><img decoding="async" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage-less-is-more.jpg" alt="mybrand-homepage-less-is-more"  title="mybrand-homepage-less-is-more"></div></div></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p style="text-align: left;"><em>Zu viele Schriften, die nicht miteinander harmonieren, und eine Überladung mit Effekten, machen die Seite sehr unansehnlich. Weniger ist hier einfach mehr!</em></p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c67c4a"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Einheitlichkeit</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Ein standardmäßiges Design sollte nicht mehr als drei verschiedene Schriftarten beinhalten. Oft reichen auch zwei, oder sogar nur eine Schriftart völlig aus. In diesem UI Design Tutorial wurde beispielsweise nur eine Schrift verwendet. Für Abwechslung sorgen verschiedene Größen und Schriftschnitte, wie <strong>fett</strong> oder <em>kursiv</em>. Außerdem erhöht sich mit jeder weiteren Schriftart die Ladezeit der Seite ein wenig.</p>
<p>Die Abstände sollten auf der gesamten Seite einheitlich sein, um eine gewisse Konsistenz zu erhalten. Hat man zwischen größeren Hauptelementen beispielsweise 100 Pixel Abstand gewählt, sollte man bei kleineren Abständen 50 oder 25 Pixel nehmen, damit diese in einem einheitlichen Größenverhältnis zueinander stehen.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_slider bt_bb_height_auto bt_bb_animation_fade animate" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;"><div class="slick-slider fade"  data-slick='{ "lazyLoad": "progressive", "cssEase": "ease-out", "speed": "300", "fade": true, "adaptiveHeight": true, "prevArrow": "&lt;button type=\"button\" class=\"slick-prev\" aria-label=\"Previous\" tabindex=\"0\" role=\"button\"&gt;&lt;/button&gt;", "nextArrow": "&lt;button type=\"button\" class=\"slick-next\" aria-label=\"Next\" tabindex=\"0\" role=\"button\"&gt;&lt;/button&gt;", "autoplay": true, "autoplaySpeed": 3000}' ><div class="bt_bb_slider_item" data-src-full="https://triboot.de/wp-content/uploads/2019/10/mybrand-grid.jpg"><img decoding="async" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-grid.jpg" alt="mybrand-grid"  title="mybrand-grid"></div><div class="bt_bb_slider_item" data-src-full="https://triboot.de/wp-content/uploads/2019/10/mybrand-distances.jpg"><img decoding="async" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-distances.jpg" alt="mybrand-distances"  title="mybrand-distances"></div><div class="bt_bb_slider_item" data-src-full="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage.jpg"><img decoding="async" src="https://triboot.de/wp-content/uploads/2019/10/mybrand-homepage.jpg" alt="Beispiel für ein gelungenes UI Design"  title="mybrand-homepage"></div></div></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p style="text-align: left;"><em>Das 12-spaltige Grid hilft dabei, die Elemente links und rechts bündig auszurichten. Für die vertikalen Abstände ist es sinnvoll sich ein Rechteck einzuzeichnen, um damit die Abstände zu messen.</em></p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c6896e"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Layout Tipps</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<ul>
<li>12-spaltiges Grid zum Layouten benutzen</li>
<li>Responsive Design für optimale Darstellung auf Smartphones und Tablets</li>
<li>Navigation standardmäßig halten, damit der User gewohnte Funktionen sofort findet</li>
<li>Styles für Farben und Schriften anlegen, um diese zentral für mehrere Elemente ändern zu können</li>
<li>Flächen durch verschiedene Farben und Formen voneinander abgrenzen</li>
<li>Footer als Abschluss der Seite</li>
</ul>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Tipp zur Seitenstrukturierung</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<ul>
<li>Es muss sofort erkennbar sein, um welches Thema es sich handelt</li>
<li>Navigationselemente müssen sofort zu finden und es muss klar sein, was sie bewirken</li>
<li>Call To Action Element, z.B. Text und Button: <strong>Mehr erfahren</strong>,<strong> Probier es aus</strong>,<strong> Try your free trial now</strong></li>
</ul>
<p>
</div></div></div></div></div></div></div></div></div></section><section data-bb-version="4.7.1" id="bt_bb_section6a430d7c69061"  class="bt_bb_section bt_bb_layout_boxed_1200 bt_bb_vertical_align_top bt_bb_background_image bt_bb_top_spacing_ bt_bb_bottom_spacing_small bt_bb_hidden_xs bt_bb_hidden_ms bt_bb_hidden_sm" style="background-image:url(&#039;https://triboot.de/wp-content/uploads/2023/10/CTA-Banner.jpg&#039;);"    data-bt-override-class="{&quot;bt_bb_top_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_top_spacing_&quot;,&quot;def&quot;:&quot;&quot;},&quot;bt_bb_bottom_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_bottom_spacing_small&quot;,&quot;def&quot;:&quot;small&quot;}}"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div data-bb-version="4.7.0"  class="bt_bb_column col-xxl-6 col-xl-6 col-xs-12 col-sm-6 col-md-6 col-lg-6 bt_bb_vertical_align_bottom bt_bb_align_center bt_bb_padding_none" style="; --column-width:6;" data-width="6" data-bt-override-class="{&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_center&quot;,&quot;def&quot;:&quot;center&quot;},&quot;bt_bb_padding_&quot;:{&quot;current_class&quot;:&quot;bt_bb_padding_none&quot;,&quot;def&quot;:&quot;none&quot;}}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div data-bb-version="4.7.0" class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_large bt_bb_bottom_spacing_extra_large" data-bt-override-class="{&quot;bt_bb_top_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_top_spacing_large&quot;,&quot;def&quot;:&quot;large&quot;},&quot;bt_bb_bottom_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_bottom_spacing_extra_large&quot;,&quot;def&quot;:&quot;extra_large&quot;}}"></div><div data-bb-version="4.7.0"  class="bt_bb_text" ></p>
<p>
Sie möchten mehr über Preise, Möglichkeiten und die Umsetzung von <a href="https://triboot.de/app-entwicklung/"><b>App Anwendungen </b></a>in Ihrem Unternehmen erfahren? Dann sind Sie bei uns genau richtig.</p>
<p>
</div><div data-bb-version="4.7.0" class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small bt_bb_bottom_spacing_small" data-bt-override-class="{&quot;bt_bb_top_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_top_spacing_small&quot;,&quot;def&quot;:&quot;small&quot;},&quot;bt_bb_bottom_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_bottom_spacing_small&quot;,&quot;def&quot;:&quot;small&quot;}}"></div><div data-bb-version="4.7.2" class="bt_bb_button accent bt_bb_color_scheme_2 bt_bb_icon_position_left bt_bb_style_filled bt_bb_size_normal bt_bb_width_inline bt_bb_shape_inherit bt_bb_target_self bt_bb_text_transform_inherit bt_bb_align_inherit" style="; --primary-color:#181818; --secondary-color:#ffffff;" data-bt-override-class="{&quot;bt_bb_size_&quot;:{&quot;current_class&quot;:&quot;bt_bb_size_normal&quot;,&quot;def&quot;:&quot;normal&quot;},&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_inherit&quot;,&quot;def&quot;:&quot;inherit&quot;}}"><a href="https://triboot.de/kontakt/" target="_self" class="bt_bb_link" title="Kontaktieren Sie uns unverbindlich"><span class="bt_bb_button_text" >Kontaktieren Sie uns unverbindlich</span><span  data-ico-fontawesome="&#xf274;" class="bt_bb_icon_holder"></span></a></div></div></div></div><div data-bb-version="4.6.1"  class="bt_bb_column col-xxl-6 col-xl-6 col-xs-12 col-sm-6 col-md-6 col-lg-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_none bt_bb_animation_fade_in zoom_out animate" style="; --column-width:6;" data-width="6" data-bt-override-class="{&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_center&quot;,&quot;def&quot;:&quot;center&quot;},&quot;bt_bb_padding_&quot;:{&quot;current_class&quot;:&quot;bt_bb_padding_none&quot;,&quot;def&quot;:&quot;none&quot;}}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"></div></div></div></div></div></div></div></div></section></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SVG Animationen leicht gemacht – 10 kreative HTML &#038; CSS Code Snippets</title>
		<link>https://triboot.de/blog/svg-animation-mit-html-und-css/</link>
		
		<dc:creator><![CDATA[Issa Pourgholam]]></dc:creator>
		<pubDate>Fri, 20 Sep 2019 13:56:04 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[3D Visualisierung]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://triboot.de/?p=7129</guid>

					<description><![CDATA[Lerne in diesem Tutorial, wie man eine moderne SVG Animationen mit HTML und CSS erstellt. Unsere Code Snippets helfen dir dabei SVG Animationen zu erstellen.]]></description>
										<content:encoded><![CDATA[<p><section id="bt_bb_section6a430d7c737d2"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-12 col-xl-12 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:12;" data-width="12" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div  class="bt_bb_text" ></p>
<p>
<strong>SVG Animationen</strong></p>
<p>
</div><div class="bt_bb_raw_content"><p class="codepen" data-height="265" data-theme-id="light" data-default-tab="html,result" data-user="triboot" data-slug-hash="XWryrdY" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="Hello World SVG Animation">
  <span>See the Pen <a href="https://codepen.io/triboot/pen/XWryrdY/" target="_blank" rel="noopener">
  Hello World SVG Animation</a> by Issa Pourgholam (<a href="https://codepen.io/triboot" target="_blank" rel="noopener">@triboot</a>)
  on <a href="https://codepen.io" target="_blank" rel="noopener">CodePen</a>.</span>
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c73b67"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-12 col-xl-12 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:12;" data-width="12" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div  class="bt_bb_text" ></p>
<p>
<strong>Schwierigkeitsgrad: Fortgeschritten</strong><br />
<strong>Zeit: ca. 15 Min.</strong></p>
<p>Dieser coole Effekt lässt sich nicht nur auf Texte, sondern Formen aller Art anwenden. Der Fantasie sind dabei keine Grenzen gesetzt.</p>
<p>Zunächst einmal benötigt man eine geeignete SVG-Datei. SVG steht für Scalable Vector Graphics. SVG-Dateien benötigen wenig Speicherplatz und sind unendlich hoch skalierbar, ohne dass es zu einem Qualitätsverlust, wie bei pixelbasierten Bildern, kommt.</p>
<p>Zum Erstellen einer SVG-Datei gibt es eine Vielzahl geeigneter Apps auf dem Markt. Wir empfehlen das für Privatanwender frei nutzbare Programm <a href="https://www.figma.com/" target="_blank" rel="noopener noreferrer">Figma</a><sup>1</sup>, welches als Desktop-App oder direkt im Browser betrieben werden kann.</p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c73e23"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Erstellen einer SVG-Datei mit Figma</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<ul>
<li>Programm öffnen, neue Datei erstellen, Frame und Desktop 1440×1024 auswählen</li>
<li>Etwas herauszoomen (Strg und Mausrad nach unten)</li>
<li>Rectangle erstellen, so groß wie die Desktop-Fläche aufziehen und beliebig einfärben</li>
<li>Textebene erzeugen und gewünschten Text eingeben (die Textebene muss sich über der Rectangle-Ebene befinden)</li>
<li>Den gesamten Text markieren (Strg + A) und Schriftart sowie Größe einstellen</li>
<li>Den Text mit den Positionierhilfen mittig an der Desktop-Fläche ausrichten</li>
<li>Rechtsklick auf den Text und <strong>Outline Stroke</strong> wählen</li>
<li><strong>Stroke +</strong> anklicken, als Farbe Weiß (FFFFFF) und Strichstärke 5px auswählen</li>
<li><strong>Fill</strong> mit – löschen</li>
<li><strong>Stroke Outside</strong> auf <em>Center</em> stellen</li>
<li><strong>Advanced Stroke</strong>: <strong>Cap</strong> auf <em>Square</em> und <strong>Join</strong> auf <em>Miter</em> stellen</li>
<li>Rechtsklick auf den Text, Copy/Paste, <strong>Copy as SVG</strong>, fertig!</li>
</ul>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div class="bt_bb_image bt_bb_shape_square bt_bb_target_blank bt_bb_align_inherit bt_bb_hover_style_zoom-in bt_bb_content_display_always bt_bb_content_align_middle" style="border-style: solid; border-width: 1px; border-color: #D3D3D3;" data-bt-override-class="{}"><a href="https://triboot.de/wp-content/uploads/2019/09/figma1.jpg" target="_blank" title="figma1"><img decoding="async" width="1200" height="649" src="https://triboot.de/wp-content/uploads/2019/09/figma1-1280x692.jpg" class="attachment-large size-large" alt="Datei erstellen für eine SVG Animation" data-full_image_src="https://triboot.de/wp-content/uploads/2019/09/figma1.jpg" title="figma1" loading="eager" srcset="https://triboot.de/wp-content/uploads/2019/09/figma1-1280x692.jpg 1280w, https://triboot.de/wp-content/uploads/2019/09/figma1-640x346.jpg 640w, https://triboot.de/wp-content/uploads/2019/09/figma1-768x415.jpg 768w, https://triboot.de/wp-content/uploads/2019/09/figma1-320x173.jpg 320w, https://triboot.de/wp-content/uploads/2019/09/figma1.jpg 1920w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div class="bt_bb_image bt_bb_shape_square bt_bb_target_self bt_bb_align_inherit bt_bb_hover_style_simple bt_bb_content_display_always bt_bb_content_align_middle" data-bt-override-class="{}"><span><img decoding="async" width="242" height="114" src="https://triboot.de/wp-content/uploads/2019/09/figma2.jpg" class="attachment-large size-large" alt="Stroke für die SVG Animation" data-full_image_src="https://triboot.de/wp-content/uploads/2019/09/figma2.jpg" title="figma2" loading="eager" /></span></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small" data-bt-override-class="null"></div><div class="bt_bb_image bt_bb_shape_square bt_bb_target_self bt_bb_align_inherit bt_bb_hover_style_simple bt_bb_content_display_always bt_bb_content_align_middle" data-bt-override-class="{}"><span><img decoding="async" width="242" height="195" src="https://triboot.de/wp-content/uploads/2019/09/figma3.jpg" class="attachment-large size-large" alt="Advanced Stroke für die SVG Animation" data-full_image_src="https://triboot.de/wp-content/uploads/2019/09/figma3.jpg" title="figma3" loading="eager" /></span></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c755ba"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>API vorbereiten</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Öffne den Code Editor deiner Wahl und lege ein neues Projekt (SVG Animationen) mit index.html, style.css und app.js an. Wir empfehlen den frei erhältlichen Quelltext-Editor Visual Studio Code®. In den Body-Tag der index.html fügst du nun den Inhalt der SVG-Datei ein. Erweitere den SVG-Tag noch mit id=“text“.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="html_code" class="bt_bb_text" ></p>
<div><!DOCTYPE html></div>
<div><html lang=’en‘></div>
<div></div>
<div><head></div>
<div>    <meta charset=“UTF-8″></div>
<div>    <meta name=“viewport“ content=“width=device-width, initial-scale=1.0″></div>
<div>    <meta http-equiv=“X-UA-Compatible“ content=“ie=edge“></div>
<div>    <title>SVG Animation mit HTML und CSS</title></div>
<div>    <link rel=“stylesheet“ href=“style.css“></div>
<div></head></div>
<div></div>
<div>
<div><body></div>
<div>
<div class=“svg-frame“></div>
<div>    <svg id=“text“ width=“100%“ height=“100%“ preserveAspectRatio=“xMinYMin meet“ viewBox=“0 0 1169 115″ fill=“none“ xmlns=“http://www.w3.org/2000/svg“></div>
<div>    <!– Restlichen Inhalt der SVG-Datei hier einfügen –></div>
<div>    </svg></div>
<div>    </div>
</div>
</div>
<div></div>
<div>
<div>    <script src=’app.js ‚></script></div>
</div>
<div></body></div>
<div></div>
<div></html></div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("html_code");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c75da0"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{&quot;bt_bb_size_&quot;:{&quot;current_class&quot;:&quot;bt_bb_size_inherit&quot;,&quot;def&quot;:&quot;inherit&quot;,&quot;xl&quot;:&quot;inherit&quot;},&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_inherit&quot;,&quot;def&quot;:&quot;inherit&quot;,&quot;xl&quot;:&quot;inherit&quot;}}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>SVG Animationen - <b>CSS einrichten</b></span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Nimm folgende Basiseinstellungen (SVG Animationen) in der style.css Datei vor und aktiviere anschließend mit Rechtsklick auf die index.html Datei <strong>Open with Live Server</strong>. Der Text sollte nun in der Mitte des neuen Browserfensters sichtbar sein.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="css_code1" class="bt_bb_text" ></p>
<div>body {</div>
<div>    width: 100%;</div>
<div>    height: 100vh;</div>
<div>    background-color: #bada64;</div>
<div>    display: flex;</div>
<div>    justify-content: center;</div>
<div>    align-items: center;</div>
<div>}</div>
<div></div>
<div>.svg-frame {</div>
<div>    width: 90%;</div>
<div>}</div>
<div></div>
<div>#text {</div>
<div></div>
<div>}</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("css_code1", "css");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c763cb"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div  class="bt_bb_text" ></p>
<p>
In der SVG Animationen index.html Datei steht jeder einzelne Buchstabe des Textes in einem eigenen Path-Tag. Mit der <a href="https://www.w3schools.com/css/css_pseudo_classes.asp" target="_blank" rel="noopener noreferrer">Pseudoklasse</a> nth-child() können diese mit CSS einzeln bearbeitet werden. Da in unserem Beispiel jeder Buchstabe animiert werden soll, brauchst du so viele Pseudoklassen, wie dein Text Buchstaben hat. Diese werden, beginnend bei eins, aufsteigend durchnummeriert. Mit <strong>stroke-dasharray</strong> werden, entsprechend der eingegebenen Pixelzahl, Lücken im Pfad erzeugt, mit <strong>stroke-dashoffset</strong> werden diese um einen bestimmten Wert verschoben. Experimentiere ruhig ein wenig mit den Werten der beiden Einstellungen, um ein Gefühl für deren Wirkung zu bekommen.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="css_code2" class="bt_bb_text" ></p>
<div>#text path:nth-child(1) {</div>
<div>    stroke-dasharray: 0px;</div>
<div>    stroke-dashoffset: 0px;</div>
<div>}</div>
<div></div>
<div>#text path:nth-child(2) {</div>
<div>    stroke-dasharray: 0px;</div>
<div>    stroke-dashoffset: 0px;</div>
<div>}</div>
<div></div>
<div>#text path:nth-child(3) {</div>
<div>    stroke-dasharray: 0px;</div>
<div>    stroke-dashoffset: 0px;</div>
<div>
<p>}</p>
<div></div>
<div>etc.</div>
</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("css_code2", "css");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c76967"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{&quot;bt_bb_size_&quot;:{&quot;current_class&quot;:&quot;bt_bb_size_inherit&quot;,&quot;def&quot;:&quot;inherit&quot;,&quot;xl&quot;:&quot;inherit&quot;},&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_inherit&quot;,&quot;def&quot;:&quot;inherit&quot;,&quot;xl&quot;:&quot;inherit&quot;}}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>SVG Animationen - <b>JavaScript</b></span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Da wir unsere Buchstaben so aussehen lassen wollen, als wenn sie aus dem Nichts auf den Bildschirm gezeichnet werden, benötigen wir die genaue Größe jedes einzelnen Pfades. Um diesen zu ermitteln, nutzen wir eine for-Schleife in JavaScript, welche uns die exakten Werte in der Konsole ausgibt. Gehe in die Browseransicht und drücke F12, um in den Entwicklermodus zu wechseln. Anschließend klickst du auf <strong>Console</strong>: Hier wird nun von jedem einzelnen Buchstaben die genaue Länge in Pixeln angezeigt.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="js_code" class="bt_bb_text" ></p>
<div>const text = document.querySelectorAll(‚#text path‘);</div>
<div></div>
<div>for (let i = 0; i < text.length; i++) {</div>
<div>
<div>
<div>    console.log(`Letter ${i} is ${text[i].getTotalLength()}`);</div>
</div>
</div>
<div>}</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("js_code", "js");
</script></div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div class="bt_bb_image bt_bb_shape_square bt_bb_target_self bt_bb_align_inherit bt_bb_hover_style_simple bt_bb_content_display_always bt_bb_content_align_middle" data-bt-override-class="{}"><span><img decoding="async" width="343" height="255" src="https://triboot.de/wp-content/uploads/2019/09/console_log.jpg" class="attachment-large size-large" alt="Werte für die SVG Animation" data-full_image_src="https://triboot.de/wp-content/uploads/2019/09/console_log.jpg" title="console_log" loading="eager" srcset="https://triboot.de/wp-content/uploads/2019/09/console_log.jpg 343w, https://triboot.de/wp-content/uploads/2019/09/console_log-320x238.jpg 320w" sizes="(max-width: 343px) 100vw, 343px" /></span></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c77803"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>CSS erweitern</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Du musst diese Werte nun, auf ganze Zahlen aufgerundet, in die <strong>stroke-dasharray</strong> und <strong>stroke-dashoffset</strong> Felder der CSS-Datei übertragen. Danach sollte von den Buchstaben im Browser nichts mehr zu sehen sein.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="css_code3" class="bt_bb_text" ></p>
<div>#text path:nth-child(1) {</div>
<div>    stroke-dasharray: 567px;</div>
<div>    stroke-dashoffset: 567px;</div>
<div>}</div>
<div></div>
<div>#text path:nth-child(2) {</div>
<div>    stroke-dasharray: 550px;</div>
<div>    stroke-dashoffset: 550px;</div>
<div>}</div>
<div></div>
<div>#text path:nth-child(3) {</div>
<div>    stroke-dasharray: 361px;</div>
<div>    stroke-dashoffset: 361px;</div>
<div>
<p>}</p>
<div></div>
<div>etc.</div>
</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("css_code3", "css");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c77f28"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{&quot;bt_bb_size_&quot;:{&quot;current_class&quot;:&quot;bt_bb_size_inherit&quot;,&quot;def&quot;:&quot;inherit&quot;,&quot;xl&quot;:&quot;inherit&quot;},&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_inherit&quot;,&quot;def&quot;:&quot;inherit&quot;,&quot;xl&quot;:&quot;inherit&quot;}}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>SVG Animationen programmieren</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Kommen wir jetzt zum eigentlichen Programmieren der SVG Animationen. Dafür erweitern wir die CSS-Datei mit folgendem Code.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="css_code4" class="bt_bb_text" ></p>
<div>
<div>
<div>
<div>#text {</div>
<div>    animation: fill 0.5s ease forwards 3.0s;</div>
<div>}</div>
<div></div>
</div>
</div>
<div>@keyframes line-anim {</div>
<div>    to {</div>
<div>        stroke-dashoffset: 0;</div>
<div>    }</div>
<div>}</div>
<div></div>
<div>@keyframes dash {</div>
<div>    to {</div>
<div>        stroke-dashoffset: 0;</div>
<div>    }</div>
<div>}</div>
</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("css_code4", "css");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c784dc"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div  class="bt_bb_text" ></p>
<p>
Für jeden Buchstaben wird eine Verzögerung von 0.3 Sekunden eingestellt, so dass sich der Schriftzug nach und nach dynamisch aufbaut.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="css_code5" class="bt_bb_text" ></p>
<div>
<div>#text path:nth-child(1) {</div>
<div>    stroke-dasharray: 567px;</div>
<div>    stroke-dashoffset: 567px;</div>
<div>    animation: line-anim 2s ease forwards;</div>
<div>}</div>
<div></div>
<div>#text path:nth-child(2) {</div>
<div>    stroke-dasharray: 550px;</div>
<div>    stroke-dashoffset: 550px;</div>
<div>    animation: line-anim 2s ease forwards 0.3s;</div>
<div>}</div>
<div></div>
<div>#text path:nth-child(3) {</div>
<div>    stroke-dasharray: 361px;</div>
<div>    stroke-dashoffset: 361px;</div>
<div>    animation: line-anim 2s ease forwards 0.6s;</div>
<div>
<p>}</p>
<div></div>
<div>etc.</div>
</div>
</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("css_code5", "css");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c78a18"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div  class="bt_bb_text" ></p>
<p>
Mit der Füllung der Outline werden die SVG Animationen effektvoll beendet. Damit dies erst dann passiert, wenn alle Buchstaben fertig gezeichnet wurden, musst du den <strong>ease forwards</strong> Wert in der animation der text Klasse ggf. noch etwas anpassen.</p>
<p>
</div><div class="bt_bb_separator bt_bb_border_style_none bt_bb_bottom_spacing_normal" data-bt-override-class="null"></div></div></div></div><div  class="bt_bb_column col-xxl-6 col-xl-6 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:6;" data-width="6" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div id="css_code6" class="bt_bb_text" ></p>
<div>@keyframes fill {</div>
<div>    from {</div>
<div>        fill: transparent;</div>
<div>    }</div>
<div>    to {</div>
<div>        fill: white;</div>
<div>    }</div>
<div>}</div>
<div>
<div>#text {</div>
<div>    animation: fill 0.5s ease forwards 4.0s;</div>
<div>}</div>
</div>
<p>
</div><div class="bt_bb_raw_content"><script>
w3CodeColor("css_code6", "css");
</script></div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c78e7e"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-12 col-xl-12 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:12;" data-width="12" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><header class="bt_bb_headline bt_bb_dash_none bt_bb_size_inherit bt_bb_align_inherit" data-bt-override-class="{}"><h4 class="bt_bb_headline_tag"><span class="bt_bb_headline_content"><span>Tipp</span></span></h4></header><div class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_normal" data-bt-override-class="null"></div><div  class="bt_bb_text" ></p>
<p>
Sollte es bei der Animation zu einer unvollständigen Darstellung des Textes kommen, achte darauf, dass beim Erstellen der SVG-Datei <strong>Cap</strong> auf <em>Square</em> und <strong>Join</strong> auf <em>Miter</em> steht. Einstellen kannst du dies unter <strong>Advanced Stroke</strong>, wenn du bei <strong>Stroke</strong> auf die drei kleinen Punkte klickst. Ggf. muss bei einigen Buchstaben <strong>Cap</strong> auf <em>Round</em> gesetzt werden. Dies machst du am besten direkt in der HTML-Datei.</p>
<p>
</div></div></div></div></div></div></div></div></div></section><section id="bt_bb_section6a430d7c79225"  class="bt_bb_section bt_bb_layout_boxed_800 bt_bb_vertical_align_top bt_bb_top_spacing_small bt_bb_bottom_spacing_small"     data-bt-override-class="null"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div  class="bt_bb_column col-xxl-12 col-xl-12 bt_bb_vertical_align_top bt_bb_align_left bt_bb_padding_normal" style="; --column-width:12;" data-width="12" data-bt-override-class="{}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div  class="bt_bb_text" ></p>
<p>
<sup>1 </sup>Figma ist kein Produkt der Triboot Technologies GmbH. Preismodelle für eine gewerbliche Nutzung entnehmen Sie bitte der Homepage des Herstellers.</p>
<p>
</div></div></div></div></div></div></div></div></div></section><section data-bb-version="4.7.1" id="bt_bb_section6a430d7c794b8"  class="bt_bb_section bt_bb_layout_boxed_1200 bt_bb_vertical_align_top bt_bb_background_image bt_bb_top_spacing_ bt_bb_bottom_spacing_small bt_bb_hidden_xs bt_bb_hidden_ms bt_bb_hidden_sm" style="background-image:url(&#039;https://triboot.de/wp-content/uploads/2023/10/CTA-Banner.jpg&#039;);"    data-bt-override-class="{&quot;bt_bb_top_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_top_spacing_&quot;,&quot;def&quot;:&quot;&quot;},&quot;bt_bb_bottom_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_bottom_spacing_small&quot;,&quot;def&quot;:&quot;small&quot;}}"><div class="bt_bb_port"><div class="bt_bb_cell"><div class="bt_bb_cell_inner"><div class="bt_bb_row "  data-bt-override-class="{}"><div class="bt_bb_row_holder" ><div data-bb-version="4.7.0"  class="bt_bb_column col-xxl-6 col-xl-6 col-xs-12 col-sm-6 col-md-6 col-lg-6 bt_bb_vertical_align_bottom bt_bb_align_center bt_bb_padding_none" style="; --column-width:6;" data-width="6" data-bt-override-class="{&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_center&quot;,&quot;def&quot;:&quot;center&quot;},&quot;bt_bb_padding_&quot;:{&quot;current_class&quot;:&quot;bt_bb_padding_none&quot;,&quot;def&quot;:&quot;none&quot;}}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"><div data-bb-version="4.7.0" class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_large bt_bb_bottom_spacing_extra_large" data-bt-override-class="{&quot;bt_bb_top_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_top_spacing_large&quot;,&quot;def&quot;:&quot;large&quot;},&quot;bt_bb_bottom_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_bottom_spacing_extra_large&quot;,&quot;def&quot;:&quot;extra_large&quot;}}"></div><div data-bb-version="4.7.0"  class="bt_bb_text" ></p>
<p>
Sie möchten mehr über Preise, Möglichkeiten und die Umsetzung von <a href="https://triboot.de/app-entwicklung/"><b>App Anwendungen </b></a>in Ihrem Unternehmen erfahren? Dann sind Sie bei uns genau richtig.</p>
<p>
</div><div data-bb-version="4.7.0" class="bt_bb_separator bt_bb_border_style_none bt_bb_top_spacing_small bt_bb_bottom_spacing_small" data-bt-override-class="{&quot;bt_bb_top_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_top_spacing_small&quot;,&quot;def&quot;:&quot;small&quot;},&quot;bt_bb_bottom_spacing_&quot;:{&quot;current_class&quot;:&quot;bt_bb_bottom_spacing_small&quot;,&quot;def&quot;:&quot;small&quot;}}"></div><div data-bb-version="4.7.0" class="bt_bb_button accent bt_bb_color_scheme_2 bt_bb_icon_position_left bt_bb_style_filled bt_bb_size_normal bt_bb_width_inline bt_bb_shape_inherit bt_bb_target_self bt_bb_text_transform_inherit bt_bb_align_inherit" style="; --primary-color:#181818; --secondary-color:#ffffff;" data-bt-override-class="{&quot;bt_bb_size_&quot;:{&quot;current_class&quot;:&quot;bt_bb_size_normal&quot;,&quot;def&quot;:&quot;normal&quot;},&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_inherit&quot;,&quot;def&quot;:&quot;inherit&quot;}}"><a href="https://triboot.de/kontakt/" target="_self" class="bt_bb_link" title="Jetzt kostenlose Beratung sichern"><span class="bt_bb_button_text" >Jetzt kostenlose Beratung sichern</span><span  data-ico-fontawesome="&#xf274;" class="bt_bb_icon_holder"></span></a></div></div></div></div><div data-bb-version="4.6.1"  class="bt_bb_column col-xxl-6 col-xl-6 col-xs-12 col-sm-6 col-md-6 col-lg-6 bt_bb_vertical_align_top bt_bb_align_center bt_bb_padding_none bt_bb_animation_fade_in zoom_out animate" style="; --column-width:6;" data-width="6" data-bt-override-class="{&quot;bt_bb_align_&quot;:{&quot;current_class&quot;:&quot;bt_bb_align_center&quot;,&quot;def&quot;:&quot;center&quot;},&quot;bt_bb_padding_&quot;:{&quot;current_class&quot;:&quot;bt_bb_padding_none&quot;,&quot;def&quot;:&quot;none&quot;}}"><div class="bt_bb_column_content"><div class="bt_bb_column_content_inner"></div></div></div></div></div></div></div></div></section></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
