I want to mimic the effect placeholder
of the inputs
in Wix login , when the focus is placed on a input
, its text placeholder
is placed above the input
and in a smaller font.
I want to mimic the effect placeholder
of the inputs
in Wix login , when the focus is placed on a input
, its text placeholder
is placed above the input
and in a smaller font.
That is an effect of Google's Material Design specification, there are several libraries that provide an implementation of this specification, however these libraries provide a whole library with components of this specification, here I found on the internet an example that uses CSS to carry out just the effect you want.
https://codepen.io/mildrenben/pen/gbddEj
The effect can be achieved using only
CSS
, punctually the propertiestransform
andtransition