
Stefan R. answered 01/31/20
Senior Full Stack Developer Delivering Web Applications for 10+ Years
You are probably referring to the style popularized with material design (demo: https://material-components.github.io/material-components-web-catalog/#/component/text-field?type=filled)?
Such effects are not achieved by "moving the placeholder", but rather by positioning the label accordingly.
However, you could simplify the effect by using a regular placeholder and then only show the label when the input is active and/or filled.