Rewrite .animate to use RGB instead of 'red'

The first line works, except because of using transparency, I’ll need to use RGB colors. When I try to rewrite the line to use RGB the aniimation quits working. Am I not calling it correctly?

      $(".startTapper div").animate({ backgroundColor: "red" }, 100);
//    $(".startTapper div").animate({ backgroundColor: rgba(255, 0, 0, 0.8) }, 100);

lines 40 & 41 in the javacript
codepen

found it, it was the quotation marks around the ‘color’
$(".startTapper div").animate({ backgroundColor: 'rgba(255, 0, 0)' }, 100);

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.