I'm trying to move the label above the input field when focus like this.
But in my other code, it only changes font-size and is not moving up. What am I missing?
I use the same CSS code for both:
CSS
input:focus + label > span {
font-size: 12px;
transform: translate3d(0, -80%, 0);
transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}