I have the following input field which I have applied some CSS transitions on:
<input type="text" id="input-text" class="both input-text">
<label id="test" for="input-text" class="label-text-first"></label>
<label id="test" for="input-text" class="label-text-second"></label>
<label id="test" for="input-text" class="both label-text-placeholder"></label>
My problem is, I want to keep the transitioned state if the input-field contains text, otherwise it's allowed to go back to the original position.
Is this possible to achieve through pure CSS3 or do I need javascript?