<?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 SVG graphics &amp; CSS animations in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194806#M17983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A question for the ESRI Dev folks or anyone else who have spent time on this topic-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on adding some animations to the selected feature when a user clicks on a feature using the technique in &lt;A href="https://developers.arcgis.com/javascript/jssamples/styling_svg_enrollment.html"&gt;this ESRI sample&lt;/A&gt;. Unlike the sample, I'm tapping into the graphic-draw event of the map's graphic layer. It does work- and here's a &lt;A href="http://jsfiddle.net/scole/suo5f2pm/17/"&gt;JSFiddle&lt;/A&gt; that shows it in action. I'll call this my "pulse" animation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have in the JSFiddle, however, is actually my second choice of "animation". I originally wanted to incorporate &lt;A href="http://codepen.io/daless14/pen/ELFgj"&gt;this animation&lt;/A&gt; into my project but it does not animate (&lt;A href="http://jsfiddle.net/scole/yyec3vjz/"&gt;here's&lt;/A&gt; my modified Fiddle of the original to show what I wanted the animation to do). I know the "hook" into the event in my JS code is sound because my "pulse" animation linked in my Fiddle works (and also works in my actual project).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to use a different animation style for linear features (as shown on #5 on &lt;A href="http://css-tricks.com/svg-line-animation-works/"&gt;this page&lt;/A&gt;) but it does not animate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess my question is this- is there some part of the JS API that prevents some of these animations from operating? A CSS conflict between my CSS and the API's? I can't see it but that doesn't mean it exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;STRONG&gt;EDIT: &lt;/STRONG&gt;I should clarify some things- I've mostly been developing in Chrome with some double checking in Firefox.I do know that IE doesn't support animations natively. I did get the line animation to work in Firefox but it does not animate in Chrome.]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 21:28:57 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2014-08-25T21:28:57Z</dc:date>
    <item>
      <title>SVG graphics &amp; CSS animations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194806#M17983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A question for the ESRI Dev folks or anyone else who have spent time on this topic-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on adding some animations to the selected feature when a user clicks on a feature using the technique in &lt;A href="https://developers.arcgis.com/javascript/jssamples/styling_svg_enrollment.html"&gt;this ESRI sample&lt;/A&gt;. Unlike the sample, I'm tapping into the graphic-draw event of the map's graphic layer. It does work- and here's a &lt;A href="http://jsfiddle.net/scole/suo5f2pm/17/"&gt;JSFiddle&lt;/A&gt; that shows it in action. I'll call this my "pulse" animation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have in the JSFiddle, however, is actually my second choice of "animation". I originally wanted to incorporate &lt;A href="http://codepen.io/daless14/pen/ELFgj"&gt;this animation&lt;/A&gt; into my project but it does not animate (&lt;A href="http://jsfiddle.net/scole/yyec3vjz/"&gt;here's&lt;/A&gt; my modified Fiddle of the original to show what I wanted the animation to do). I know the "hook" into the event in my JS code is sound because my "pulse" animation linked in my Fiddle works (and also works in my actual project).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to use a different animation style for linear features (as shown on #5 on &lt;A href="http://css-tricks.com/svg-line-animation-works/"&gt;this page&lt;/A&gt;) but it does not animate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess my question is this- is there some part of the JS API that prevents some of these animations from operating? A CSS conflict between my CSS and the API's? I can't see it but that doesn't mean it exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;STRONG&gt;EDIT: &lt;/STRONG&gt;I should clarify some things- I've mostly been developing in Chrome with some double checking in Firefox.I do know that IE doesn't support animations natively. I did get the line animation to work in Firefox but it does not animate in Chrome.]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 21:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194806#M17983</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2014-08-25T21:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: SVG graphics &amp; CSS animations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194807#M17984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should say it's an interesting idea to highlight features.&lt;/P&gt;&lt;P&gt;Managed to get the point highlight working. I'll try the line when i can find sometime. If you get it working before, do post back I'll be interested in knowing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 09:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194807#M17984</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-26T09:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: SVG graphics &amp; CSS animations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194808#M17985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached line ripple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 12:01:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194808#M17985</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-26T12:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: SVG graphics &amp; CSS animations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194809#M17986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Riyas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see an attachment or link in your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 18:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194809#M17986</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2014-08-26T18:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: SVG graphics &amp; CSS animations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194810#M17987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will not see the attachments in your inbox. you will actually have to go to the thread to see them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 18:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194810#M17987</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-26T18:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: SVG graphics &amp; CSS animations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194811#M17988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that tip, Robert. Just another thing to love about GeoNet!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 18:54:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194811#M17988</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2014-08-26T18:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: SVG graphics &amp; CSS animations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194812#M17989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/55033"&gt;Riyas Deen&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I marked the line example as the correct answer since I don't think you can mark two posts as the correct answer. Your line ripple example is a much smoother animation than what I originally came up with and I've already incorporated it into my project so thank you for that!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example for points is beautiful- this is exactly what I mentally envisioned for the animation. While your example works, there is a small glitch with your approach but I don't know the answer for fixing it. It seems to be built on screen coordinates so zooming the map or, more severely, panning the map breaks the location of the animation. A map zoom will correct itself but if you simply pan the map, the animation stays at its original screen location even though the point has moved elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see what you did there but I don't quite understand the why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 21:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194812#M17989</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2014-08-26T21:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: SVG graphics &amp; CSS animations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194813#M17990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about that din realize my logic would break when extent changes. I have modified the code to work for extent change as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look for createRipple method in the code, i have made an assumption there. you will have to get your graphics object there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 02:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-graphics-css-animations/m-p/194813#M17990</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-27T02:45:49Z</dc:date>
    </item>
  </channel>
</rss>

