title: Animation for image inside the Button
body: <p>I am new to this coding field, I think my issue is simple for experienced people like you all guys.I am trying to animate the image which is inside the button.When I click on the button I need the image to be rotated 360deg.I dont know what wrong I am  doing here is my HTML and CSS code.Please help</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.syncRotate {
    -webkit-transition: 500ms ease all !important;
    -moz-transition: 500ms ease all !important;
    -o-transition: 500ms ease all !important;
    transition: 500ms ease all !important;
    -webkit-transform: rotate(360deg) !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button class="iconBtn" mdTooltipPosition="above" mdTooltip="Sync User" (click)="sync()"&gt;
      &lt;img class="syncRotate" style="width:20px;background-color: #a6a6a6;border-radius: 13px;padding:2px;" src="../../assets/images/icons/sync.svg" alt="Sync"&gt;
  &lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>