🎉 Black Friday deal! 30% off your first year of CodyHouse Pro →


Progress value is 30%

Floating Label

An input element with a placeholder that morphs into a label.

View Demo


All components are based on CodyFrame.

How to

The Floating Label component is used to replace the label of a form element with a placeholder, then trigger the label visibility when content is added to the input.

The floating animation is active only if Javascript is enabled (we use JS to check if the .form-control element has content). If Javascript is disabled, the label remains visible.

To use this component, add the .floating-label class to a parent containing the .form-label and .form-control elements.

⚠️ Make sure the value of the label element and of the placeholder are the same.

✅ Project duplicated

✅ Project created

There was an error while trying to export your project. Please try again or contact us