Note that there are some explanatory texts on larger screens.

plurals
  1. POBackground not animating when using variables
    text
    copied!<p>I am using css-transitions which are added using jquery for a slideshow though for some reason it is not animating the background of the element.</p> <p>Here is the code that I am using:</p> <pre><code>$(this).find('.pagers').children().css('-webkit-transition-property', 'background'); $(this).find('.pagers').children().css('-webkit-transition-timing-function', 'linear'); $(this).find('.pagers').children().css('-webkit-transition-duration', du); $(this).find('.pagers').children().css('-moz-transition-property', 'background'); $(this).find('.pagers').children().css('-moz-transition-timing-function', 'linear'); $(this).find('.pagers').children().css('-moz-transition-duration', du); $(this).find('.pagers').children().css('-o-transition-property', 'background'); $(this).find('.pagers').children().css('-o-transition-timing-function', 'linear'); $(this).find('.pagers').children().css('-o-transition-duration', du); $(this).find('.pagers').children().css('-ms-transition-property', 'background'); $(this).find('.pagers').children().css('-ms-transition-timing-function', 'linear'); $(this).find('.pagers').children().css('-ms-transition-duration', du); $(this).find('.pagers').children().css('transition-property', 'background'); $(this).find('.pagers').children().css('transition-timing-function', 'linear'); $(this).find('.pagers').children().css('transition-duration', du); </code></pre> <p>I can't just use a regular css transition because I am using a variable.</p> <p>I have already tried to do .animate instead though it didn't work.</p> <p><a href="http://jsfiddle.net/Hive7/uf5gE/" rel="nofollow">http://jsfiddle.net/Hive7/uf5gE/</a></p> <p>Thanks in advance</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload