How can I change another element with pure CSS, from an element?
I tried to do this but it did not roll. I do not really know the selectors and wonders of CSS.
input {
display: block;
transition: top .3s, left .3s;
}
label {
position: relative;
top: 17px;
font-size: 12px;
left: 5px;
}
input:focus ~ label {
top: 0px;
left: 0px;
}
<label>Label</label>
<input type="text">
What I want to do is focus on input, upload the label with pure CSS.