jQuery CSS with delay. Is this the cleanest way to write it?

setTimeout(function () {
    $('#me').css({
		height:'200px',
		width:'400px',
		background:'red'
	});
}, 2000);

Thanks

Hi Eric,

For me, setTimeout is the most natural way to go.
As you are adding quite a few styles, you might want to consider making them a class.

E.g.

.me{
  height: 200px;
  width: 400px;
  background: red;
}
setTimeout(function () {  $('#me').addClass("me") }, 2000);

Thank you Pullo. :slight_smile: