Javascript helpers to work with CSS transitions.