I have an animation setup to alternate between 0 and 100 opacity. When applying it to just the input it works fine.
But when I try to apply it to the placeholder selector for the input it does not.
The curious thing is if I put the css attribute for opacity directly in the placeholder SCSS class it works fine.
input {
&:focus::placeholder {
animation: blinkPlaceholder 2s ease-out -2s infinite alternate forwards;
}
@keyframes blinkPlaceholder {
0% {
opacity: 100;
}
49% {
opacity: 100;
}
50% {
opacity: 0;
}
100% {
opacity: 0;
}
}
}
I couldn't figure out how to get the built in editor to work with SCSS, so here is a jsFiddle: https://jsfiddle.net/ov1hbd65/2/