I have a widget and I am trying to put all my code inside the widget selector so it doesn't break exterior css(of the website where widget is placed). For this I also want to put my animation under the widget selector.
Placing a selector infront of the @keyframes breaks the code and animation doesn't work
This works:
animation: slide-up-fade-in ease 1s;
@keyframes slide-up-fade-in{
0% {
...
}
}
But if I place a selector in front of the @keyframes it stops working
animation: slide-up-fade-in ease 1s;
mybot @keyframes slide-up-fade-in{
0% {...}