I'm trying to simply move a sentence 20px on the y-axis every 3 seconds by using setInterval(). My code will only move the sentence one time. What's going on?
var yAxis = 20;
setInterval(function() {
$('.sentence').css('transform', 'matrix(1, 0, 0, 1, 0,' + yAxis + ')');
}, 3000);