Transitions with jquery trigger and css