plainJS

Libraries / UI

floatingLabel.js

A floating label plugin written in vanilla javascript

Dormant0 dependenciesScript tagApache-2.0

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size4.3 KB minified, 1.4 KB gzipped (dist/floatingLabel.min.js)
LicenceApache-2.0
Dependenciesnone
Last releasev2.0.0, October 2015
Last activity2017-06-12 (Dormant)
Stars74 on GitHub
Formatsclassic script (global floatingLabel)
CDN hits51 a month on jsDelivr
npm downloads162 a month
GatesG1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 failed (not archived or deprecated). Smoke test on v2.0.0 in headless Chromium, 2026-10-30

Load it

Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/floatingLabel.min.js"
        integrity="sha384-sMLXKK84miY/J3okeBy7FCegut1eaE7D4jvmlDxJZy6xp9ytSs4mSSQD+RR40XrC" crossorigin="anonymous"></script>
Advertisement

Entry 9 in the directory. Facts refreshed monthly; last run 2026-10-30.