Fixed issue with multiple carousel transitions

Fixed an issue with the transitions of the carousel, which failed when
more than one CSS transition was set, due to multiple durations being
return. (E.g. ".6s, 2s".)