changed $transition-speed to $speed