<?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[how to make style blinking via value?]]></title><description><![CDATA[<p dir="auto">I learned form the style via value example and modified for my data point. i am trying to use this to indicate status for good, warn, alarm, fault and isolate. The data point value will be 0, 1, 2, 3 and 4.  Quite happy as it does change color when value changes.  Below is the code I used.   But the color will be all steady. I want to have steady green color only when "good" , but when alarms I wish to make it blink.  Could you help what I need to code to make it blink when alarms?   Thanks.</p>
<pre><code>&lt;style&gt;
    .default {
        background-color: black;
        color: white;
        position: absolute; left:100px; top: 200px;
        height: 30px;
        width:30px;
    }
    .good {
        background-color: green;
    }
    .warn {
        background-color: orange;
    }
    .alarm {
        background-color: red;
    }
    .fault {
        background-color: brown;
    }
    .isolated {
        background-color: lightgrey;
    }
&lt;/style&gt;

&lt;ma-get-point-value point-xid="DP_1ff7e5b2-2d09-4134-aaf8-305005db3483" point="myPoint"&gt;&lt;/ma-get-point-value&gt;
&lt;div class="default" ng-class="{'good': myPoint.value === 0, 'warn': myPoint.value === 1, 'alarm': myPoint.value === 2, 'fault': myPoint.value === 3, 'isolated': myPoint.value === 4}"&gt;
    &lt;ma-point-value point="myPoint"&gt;&lt;/ma-point-value&gt;
&lt;/div&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/topic/4469/how-to-make-style-blinking-via-value</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 04:22:18 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4469.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Sep 2019 03:31:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to make style blinking via value? on Mon, 16 Sep 2019 05:44:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jared-wiltshire" aria-label="Profile: jared-wiltshire">@<bdi>jared-wiltshire</bdi></a></p>
<p dir="auto">Thank you so much for the help. . I finally got it working using code you suggested, studied the example  and modified to what I wanted.  Works really well.</p>
]]></description><link>https://forum.mango-os.com/post/23629</link><guid isPermaLink="true">https://forum.mango-os.com/post/23629</guid><dc:creator><![CDATA[ozone]]></dc:creator><pubDate>Mon, 16 Sep 2019 05:44:59 GMT</pubDate></item><item><title><![CDATA[Reply to how to make style blinking via value? on Fri, 13 Sep 2019 15:11:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ozone" aria-label="Profile: ozone">@<bdi>ozone</bdi></a> There's actually a CSS class built into Mango which will make this really easy.<br />
Just add <code>ma-throb-opacity</code> to your <code>ng-class</code> expression.</p>
<pre><code>ng-class="{'good': myPoint.value === 0, 'warn': myPoint.value === 1, 'alarm': myPoint.value === 2, 'fault': myPoint.value === 3, 'isolated': myPoint.value === 4, 'ma-throb-opacity': myPoint.value &gt; 0 }"
</code></pre>
<p dir="auto">If you want to see how it works, or modify it a bit, the CSS is supplied in this Mango example -<br />
<code>/ui/examples/single-value-displays/led-indicator</code></p>
]]></description><link>https://forum.mango-os.com/post/23620</link><guid isPermaLink="true">https://forum.mango-os.com/post/23620</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Fri, 13 Sep 2019 15:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to how to make style blinking via value? on Fri, 13 Sep 2019 06:50:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/ozone" aria-label="Profile: ozone">@<bdi>ozone</bdi></a></p>
<p dir="auto">using CSS animations will be you best way I believe. Here are 2 links showing you how to do it.<br />
<a href="https://css-tricks.com/almanac/properties/a/animation/" rel="nofollow ugc">https://css-tricks.com/almanac/properties/a/animation/</a><br />
<a href="https://bytutorial.com/blogs/css3/how-to-create-blinking-background-color-and-text-using-css3-animation" rel="nofollow ugc">https://bytutorial.com/blogs/css3/how-to-create-blinking-background-color-and-text-using-css3-animation</a></p>
]]></description><link>https://forum.mango-os.com/post/23607</link><guid isPermaLink="true">https://forum.mango-os.com/post/23607</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Fri, 13 Sep 2019 06:50:16 GMT</pubDate></item></channel></rss>