//we can add any css transform in this way ex: rotate,scale e.t.c const mainSection = $('.main_section'); mainSection.css('transform','rotate('+ 30 +'deg)');