title: Css transition doesn't work in action view Rails
body: <p>I have been trying to work out why my css transition doesn't work. I use hover.css library to achieve a bounce effect when I hover over the button. But my button does'nt seem to work with action view syntax. Here is my ERB code </p>
  
  <pre><code>&lt;h1&gt;Goals&lt;/h1&gt;
  &lt;div class="row"&gt;
  &lt;% @goals.each do |goal| %&gt;
    &lt;div class="one-third column" style="border: solid 0.5px #555; border-radius:10px;padding: 20px;"&gt;
      &lt;h3&gt;&lt;%= goal.title %&gt;&lt;/h3&gt;
      &lt;p&gt;&lt;%= goal.is_goal_validated %&gt;&lt;/p&gt;
      &lt;p&gt;&lt;%= goal.is_goal_completed %&gt;&lt;/p&gt;
      &lt;p&gt;&lt;%= button_to 'Pledge', goal, :method =&gt; :get, class: "hvr-bounce-to-right" %&gt;&lt;/p&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  &lt;button class="hvr-bounce-to-right"&gt;hi&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And this is my css code </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>.hvr-bounce-to-right {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
  }
  .hvr-bounce-to-right:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2098d1;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
  }
  .hvr-bounce-to-right:hover, .hvr-bounce-to-right:focus, .hvr-bounce-to-right:active {
    color: white;
  }
  .hvr-bounce-to-right:hover:before, .hvr-bounce-to-right:focus:before, .hvr-bounce-to-right:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
    transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button class="hvr-bounce-to-right"&gt;hi&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The thing is that my button html syntax works but not for the action view syntax. Any help would be much appreciated.</p>