I am currently utilizing FontAwesome 3.1.0, and I have encountered an issue with a simple code snippet that is not functioning as expected:
<a href="/">
<!-- other html content -->
<i class="icon-spinner icon-spin"></i>
</a>
Interestingly, changing the a
tag to div
resolves the problem.
Is there a way to enable the CSS3 animation feature? Or is it simply not achievable? I prefer not to resort to changing it to a div
element and achieving link-like behavior through JavaScript.
UPDATE:
The aforementioned code actually works perfectly fine on platforms like jsfiddle. However, when implemented on my webpage, it does not animate properly. It seems that there might be an underlying conflict that eludes my understanding.
For example:
Experiment by editing a.post-agree-amount:first
where an
<i class="icon-thumbs-up"></i>
is present. Upon replacing it with <i class="icon-spinner icon-spin"></i>
, the animation ceases to function. Even relocating this <a>
tag within the DOM using browser code inspector fails to initiate the animation. Curiously, converting <a>
to <div>
triggers the animation successfully.
I typically browse with Google Chrome 28.0, but have also observed this behavior in Firefox 22.0.