<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Centering text and adding blinking dots to the clock]]></title><description><![CDATA[<p dir="auto">Hey,</p>
<p dir="auto">I’d like to center the text for the clock module (only for the 24hour mark under the actual date) and also add blinking dots between the hours and minutes.</p>
<p dir="auto">Very new to this, could anyone help ? Thank you !</p>
]]></description><link>https://forum.magicmirror.builders/topic/14237/centering-text-and-adding-blinking-dots-to-the-clock</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 04:13:46 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14237.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Dec 2020 19:43:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Centering text and adding blinking dots to the clock on Tue, 15 Dec 2020 12:44:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ashishtank" aria-label="Profile: ashishtank">@<bdi>ashishtank</bdi></a> Thank you for this.</p>
<p dir="auto">Again, very new to coding and have no idea what to do or <s>where to change things to make the lower text (Time) centered … Could you help me a bit more with this ?</s></p>
<p dir="auto">Figured it out thank you !</p>
]]></description><link>https://forum.magicmirror.builders/post/85772</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/85772</guid><dc:creator><![CDATA[Morganga]]></dc:creator><pubDate>Tue, 15 Dec 2020 12:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to Centering text and adding blinking dots to the clock on Tue, 15 Dec 2020 10:58:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/morganga" aria-label="Profile: Morganga">@<bdi>Morganga</bdi></a> you can do this with css animation. You may want to disable the seconds in clock as it will update the Dom every second and then you won’t see much of animation.</p>
<p dir="auto">I did this in dirty way using JavaScript as below by changing clock.js and keeping displaySeconds to true</p>
<pre><code>if (this.config.clockBold === true) {
			timeString = now.format(hourSymbol + '[ &lt; span class="bold"&gt;]mm[ &lt; /span&gt;]');
		} else {
                         //here to
			if (now.toDate().getSeconds() % 2 == 0)
				timeString = now.format(hourSymbol + ":mm");
			else
				timeString = now.format(hourSymbol + " mm");
                         //here 
		}
</code></pre>
<p dir="auto">Blinking text example using css @ <a href="https://stackoverflow.com/questions/16344354/how-to-make-blinking-flashing-text-with-css-3" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/16344354/how-to-make-blinking-flashing-text-with-css-3</a><br />
you will need to wrap : in span or other element and apply css class to it and let it blink.</p>
<p dir="auto">About centering the text is also possible with CSS, check the css classes using dev tools.</p>
]]></description><link>https://forum.magicmirror.builders/post/85766</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/85766</guid><dc:creator><![CDATA[ashishtank]]></dc:creator><pubDate>Tue, 15 Dec 2020 10:58:33 GMT</pubDate></item></channel></rss>