changed jquery animate to transition