Description
This snippet add a flashing background to the loop button while the current section is being looped. This makes it easier to see this from a distance.
Screenshots
Code
@keyframes button-looping {
from {
background-color: #2f855a;
}
to {
background-color: #48bb78;
}
}
.performance .controls :nth-child(3).active,
.performance .controls :nth-child(3).playing {
/* change the duration here if you'd like the animation to be slower */
animation: button-looping 0.3s alternate linear infinite;
}
.performance .controls :nth-child(3).active svg,
.performance .controls :nth-child(3).playing svg {
color: #fff;
}
If you’re using AbleSet 2.3.0 or newer, you can use a simplified version:
@keyframes button-looping {
from {
background-color: #2f855a;
}
to {
background-color: #48bb78;
}
}
.performance .controls .loop.active {
/* change the duration here if you'd like the animation to be slower */
animation: button-looping 0.3s alternate linear infinite;
}
.performance .controls .loop.active svg {
color: #fff;
}