function toggleTransitions () {
  [...slides].forEach(function (el) {
    if (!(/no-transitions/).test(el.className)) {
      el.classList.add('no-transitions');
    } else {
      el.classList.remove('no-transitions');
    }
  });
}
Add or remove `no-transitions` class.
@returns {void}