What does the floating command do in ionic?

<ion-label floating>Password
^ I wanted to know what the floating does.^
Thanks For Your Help,

If you google for “ionic documentation ion-label floating” on #1 you will be linked to https://ionicframework.com/docs/api/components/label/Label/.

Searching for “floating” in that page brings you to https://ionicframework.com/docs/api/components/label/Label/#attributes

A label that will float above the input if the input is empty or loses focus.

1 Like

floating do the animation effect for your input, button, label etc.

see few examples https://codepen.io/nobitagit/pen/ZYWVKw

1 Like