Simple form input effect
How do I make an simple form input effect?
Simple animation test on input. What is a simple form input effect? How do you make a simple form input effect? This script and codes were developed by Anthony on 04 January 2023, Wednesday.
Simple form input effect - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple form input effect</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <form action="#" method="post"> <div class="input-row"> <input placeholder="Write your name" type="text" /> </div> <div class="input-row"> <input placeholder="Write your nickname" type="text" /> </div>
</form> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Simple form input effect - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Sintony:400,700);
*,
*:before,
*:after { box-sizing: border-box;
}
::-webkit-input-placeholder { color: white;
}
::-moz-placeholder { color: white;
}
:-ms-input-placeholder { color: white;
}
input:focus::-webkit-input-placeholder { color: #0796ad;
}
input:focus::-moz-placeholder { color: #0796ad;
}
input:focus:-ms-input-placeholder { color: #0796ad;
}
body { background: #6de5f9; font-family: 'Sintony', sans-serif; text-align: center;
}
form { margin: 0 auto; max-width: 600px;
}
.input-row:after { background: #09C0DE; content: ""; display: block; height: 5px; opacity: 0; transform: translateY(5px); transition: all .15s ease-in-out; width: 100%;
}
.input-row.current:after { opacity: 1; transform: translateY(0);
}
input[type=text] { background: transparent; border: 0; display: block; font-size: 18px; height: 50px; padding: 5px 20px 10px 20px; text-transform: uppercase; transition: all .15s ease-in-out; width: 100%;
}
input[type=text]:focus { background: rgba(255, 255, 255, 0.9); border-bottom: 0; box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1); color: #068094; outline: none; transform: translateY(5px);
}
Simple form input effect - Script Codes JS Codes
$('input:text').on('focusin', function() { $(this).parent().addClass('current');
}).on('focusout', function() { $(this).parent().removeClass('current');
});
Developer | Anthony |
Username | Tonours |
Uploaded | January 04, 2023 |
Rating | 3 |
Size | 3,080 Kb |
Views | 14,168 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Remember MSN Wizz | 2,206 Kb |
Background Animation | 4,554 Kb |
Bender edit profile | 4,818 Kb |
Send button effect | 2,754 Kb |
Fail vibration | 2,008 Kb |
A Pen by Anthony | 7,238 Kb |
Button hover | 2,867 Kb |
Svg animation test | 2,338 Kb |
SVG fill animation | 2,203 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Mobile Nav Menu | AliKlein | 4,745 Kb |
Jquery 2d character movement | Drewtadams | 4,291 Kb |
PNotify Demo | Adittmar | 1,731 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Freecodecamp - Tribute Page | Samoht513 | 3,583 Kb |
A Pen by Dalton Liu | Liudalton | 12,437 Kb |
Count checked checkboxes with jQuery | Mestika | 2,343 Kb |
Print element on a page | Mrs_snow | 2,081 Kb |
Greyscale image with filter in CSS3 | NickyCDK | 1,562 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!