(--OVERALL-TRANSITION-DURATION);
}

/* Actions to be performed when the switch is TOGGLED ON */
.switch input:checked + .slider::before {
  transform-origin: left;
  animation: wobble var(--OVERALL-TRANSITION-DURATION);
  transform: scale(1, 1) translateX(2rem);
}

/* Actions to be performed when the switch is TOGGLED OFF */
.switch input:not(:checked) + .slider::before {
  transform-origin: right;
  animation: reverse-wobble var(--OVERALL-TRANSITION-DURATION);
}

@keyframes wobble {
  0% {
    transform: s