The `transitionend` of the `slideCenter` would be the same with the `slideLeft` and `slideRight`, except the statements inside the `if` block.