I'm trying to have --main-color move smoothly through the colors of the rainbow using betterdiscord. However, despite defining the transition-timing-function set to linear, it jumps from color to color instead of transitioning smoothly.
@keyframes RGB_TEXT {
from {--main-color: rgb(255 0 0);}
15% {--main-color: rgb(255 165 0);}
31% {--main-color: rgb(255 255 0);}
46% {--main-color: rgb(0 128 0);}
61% {--main-color: rgb(0 0 255);}
76% {--main-color: rgb(75 0 130);}
92% {--main-color: rgb(238 130 238);}
to {--main-color: rgb(255 0 0);}
}
:root {
animation: RGB_TEXT 10s linear infinite;
}