Use .style() when transitioning text properties; otherwise, use .attr()