What does the floating command do in ionic?

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

If you google for “ionic documentation ion-label floating” on #1 you will be linked to ion-label: Item Label Color and Properties for Applications.

Searching for “floating” in that page brings you to ion-label: Item Label Color and Properties for Applications

floating
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
https://codepen.io/tundak/pen/mMPvRy
https://codepen.io/tonystar/pen/JRLaKw

1 Like