<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to apply CSS effects to custom graphics layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276006#M25474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I noticed that the Mobile ArcGIS.com &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/mobile_arcgis.html" rel="nofollow" target="_blank"&gt;tutorial&lt;/A&gt;&lt;SPAN&gt; uses CSS to make the GPS indicator (a blue dot) pulse when shown. This is the selector:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;#map_graphics_layer {&amp;nbsp; -webkit-animation-duration:3s;&amp;nbsp; -webkit-animation-iteration-count:infinite;&amp;nbsp; -webkit-animation-name:pulse;&amp;nbsp; -webkit-animation-timing-function:ease-in-out; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I can't do this because I use the map.graphics layer for other things that shouldn't pulse. Instead I made a custom graphics layer for the GPS point and gave it its own ID, like "gps-graphics-layer". I tried using the same CSS on &lt;/SPAN&gt;&lt;STRONG&gt;#gps-graphics-layer&lt;/STRONG&gt;&lt;SPAN&gt; but that didn't work. Does anyone know how to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 23:10:58 GMT</pubDate>
    <dc:creator>RobertMartin2</dc:creator>
    <dc:date>2013-08-26T23:10:58Z</dc:date>
    <item>
      <title>How to apply CSS effects to custom graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276006#M25474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I noticed that the Mobile ArcGIS.com &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/mobile_arcgis.html" rel="nofollow" target="_blank"&gt;tutorial&lt;/A&gt;&lt;SPAN&gt; uses CSS to make the GPS indicator (a blue dot) pulse when shown. This is the selector:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;#map_graphics_layer {&amp;nbsp; -webkit-animation-duration:3s;&amp;nbsp; -webkit-animation-iteration-count:infinite;&amp;nbsp; -webkit-animation-name:pulse;&amp;nbsp; -webkit-animation-timing-function:ease-in-out; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I can't do this because I use the map.graphics layer for other things that shouldn't pulse. Instead I made a custom graphics layer for the GPS point and gave it its own ID, like "gps-graphics-layer". I tried using the same CSS on &lt;/SPAN&gt;&lt;STRONG&gt;#gps-graphics-layer&lt;/STRONG&gt;&lt;SPAN&gt; but that didn't work. Does anyone know how to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 23:10:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276006#M25474</guid>
      <dc:creator>RobertMartin2</dc:creator>
      <dc:date>2013-08-26T23:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply CSS effects to custom graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276007#M25475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The key thing to pick up on is that the element you want to style gets an ID of &amp;lt;layer-id&amp;gt;_layer. So, if you add a graphics layer with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var gl = new GraphicsLayer({ id: "blink" });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your CSS would look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #blink_layer {&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -webkit-animation-duration: 3s; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -webkit-animation-iteration-count: infinite; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -webkit-animation-name: pulse; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-animation-duration: 3s; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-animation-iteration-count: infinite; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-animation-name: pulse; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Full example:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsbin.com/iLuMAwE/1/edit" rel="nofollow" target="_blank"&gt;http://jsbin.com/iLuMAwE/1/edit&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've got a couple things related to this coming up at the next release and we'll have more docs/examples for this kind of thing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 00:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276007#M25475</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2013-08-27T00:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply CSS effects to custom graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276008#M25476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Derek! The _layer suffix did the trick. The pulse effect is causing strange problems for me though in Chrome (it bounces around the screen when you pan). I have an idea for another effect, but I would need a selector for just that one graphic from the graphics layer. I don't suppose that's possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 14:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276008#M25476</guid>
      <dc:creator>RobertMartin2</dc:creator>
      <dc:date>2013-08-27T14:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply CSS effects to custom graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276009#M25477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The pulse effect is causing strange problems for me though in Chrome (it bounces around the screen when you pan).&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's been a recurring but intermittent issue with Chrome for a while...I don't know of a fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I have an idea for another effect, but I would need a selector for just that one graphic from the graphics layer. I don't suppose that's possible?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is brittle but works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #blink_layer &lt;STRONG&gt;circle:first-child&lt;/STRONG&gt; { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -webkit-animation-duration: 3s;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -webkit-animation-iteration-count: infinite;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -webkit-animation-name: pulse;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-animation-duration: 3s;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-animation-iteration-count: infinite;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-animation-name: pulse;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will be easier with 3.7 as we're adding a way for you to put custom data-* attributes on graphics you create. You can then target those graphics with css selectors and style one or groups of graphics a particular way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:27:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276009#M25477</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-11T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply CSS effects to custom graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276010#M25478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again Derek. Could you explain what "circle" means in that selector? It's not working as is but sounds promising!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 14:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276010#M25478</guid>
      <dc:creator>RobertMartin2</dc:creator>
      <dc:date>2013-08-28T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply CSS effects to custom graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276011#M25479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Circle is an &lt;/SPAN&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle"&gt;svg circle element&lt;/A&gt;&lt;SPAN&gt;. Depending on the type of symbol you're using, this could be different. Dig into the markup for the map to find out what you need to use in your selector:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://cl.ly/image/2Q103V093M1S"&gt;http://cl.ly/image/2Q103V093M1S&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 15:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-apply-css-effects-to-custom-graphics-layer/m-p/276011#M25479</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2013-08-28T15:07:32Z</dc:date>
    </item>
  </channel>
</rss>

