active-placeholder is a lightweight JavaScript for moving placeholder text in an input field.
input placeholder animation, placeholder to label animation, placeholder animation css, placeholder text with typing effect, animated input fields, placeholder animation js
Move Placeholder Above the Animation Input on Focus In Pure CSS
How to make use of it:
1. Simply download the text of the active placeholder and embed it in your document.
<script src="active-placeholder.js"></script>
2. Select an array of strings for the animated placeholder text that you want to rotate through.
var myInput = document.getElementById('myInput'); var activePlaceholder = new ActivePlaceholder( myInput, 'I Love', ['JavaScript', 'Python']);
3. Start the animation.
activePlaceholder.start();
4. Stop animation.
activePlaceholder.stop();
Animated Placeholder Text In Text Field, active-placeholder Plugin/Github
See Demo And Download
Official Website(derekxwu): Click Here
This superior jQuery/javascript plugin is developed by derekxwu. For extra Advanced Usages, please go to the official website.