How can I create a selector that matches any set of two specific strings with a dynamic string in between them?:
e.g.
[class*="animation-"**"-infinite"] {
animation-iteration-count: infinite;
}
So it would be able to target these classes:
class="animation-hover-infinite"
class="animation-scale-infinite"
class="animation-opacity-infinite-somethingElse"
class="animation-etc-infinite withSomeOtherClass"
But not target this:
class="animation-something"
class="something-infinite"
Is this possible? Or are there other CSS selectors that can make this happen?