Input UI Animation
How do I make an input ui animation?
What is a input ui animation? How do you make a input ui animation? This script and codes were developed by Sasha on 12 August 2022, Friday.
Input UI Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Input UI Animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="parent"> <input class="cbox" type="checkbox" /> <label class="add" for="cbox">Add Comment</label> <input class="message" type="text" /> </div>
</div>
<footer>Made by <a href="https://twitter.com/sa_sha26">Sasha Tran</a></footer> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Input UI Animation - Script Codes CSS Codes
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,500");
@import url("https://fonts.googleapis.com/css?family=Inconsolata");
* { margin: 0; padding: 0;
}
body { background: #E8E8E8; font-family: 'Raleway', sans-serif;
}
.cbox,
.container { display: flex; align-items: center; justify-content: center;
}
.container { flex-direction: column; height: 100vh;
}
.parent { width: 200px; height: 50px; position: relative;
}
.parent .add,
.parent .cbox,
.parent .message { position: absolute;
}
.parent .add,
.parent .message { color: #F25C54;
}
.parent .add { top: -3px; right: 25px; transition: 0.6s all 0.3s; letter-spacing: 1px;
}
.message,
.cbox { outline: none;
}
.cbox { top: -10px; right: -10px; width: 30px; height: 30px; background: #F25C54; border-radius: 100%; -webkit-appearance: none; z-index: 3;
}
.cbox:before, .cbox:after { position: absolute; content: ''; width: 20px; height: 2px; background: #E8E8E8; transition: 0.4s all;
}
.cbox:after { transform: rotate(90deg);
}
.cbox:checked ~ .message { width: 300px; height: 50px; transition: 0.3s width, 0.3s height 0.2s;
}
.cbox:checked:before, .cbox:checked:after { transform: rotate(360deg); transition: 0.4s all;
}
.cbox:checked ~ .add { font-size: 13px; transform: translateY(-16px); transition: 0.3s all;
}
.message { right: 0; height: 0; width: 0; transition: 0.4s all; background: none; border: 2px solid #F25C54; transition: 0.4s width 0.2s, 0.1s height; font-size: 30px; padding-left: 10px;
}
footer { position: absolute; bottom: 0; right: 0; font-size: 12px; padding: 10px; color: #333; letter-spacing: 1px; font-family: 'Inconsolata', monospace;
}
footer a { color: #F25C54;
}
Input UI Animation - Script Codes JS Codes
var checked = $(".cbox");
checked.click(function() { if (checked.prop("checked")) { $(".add").text("Hit Enter to Submit"); } if (!checked.prop("checked")) { $(".message").val(""); $(".add").text("Add Comment"); }
});
![Input UI Animation - Script Codes](http://shots.codepen.io/sashatran/pen/dWNYEv-512.jpg)
Developer | Sasha |
Username | sashatran |
Uploaded | August 12, 2022 |
Rating | 4.5 |
Size | 3,234 Kb |
Views | 30,360 |
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 |
Pages of 2017 | 3,411 Kb |
Moving head with Parallax.js | 3,066 Kb |
CSS Gallery Hover Effect | 2,938 Kb |
VueJS Zip Code Finder | 3,554 Kb |
SVG Filter Gooey Share, Social Media Button | 3,275 Kb |
Random Color Generator | 3,519 Kb |
Animated CSS Tooltip | 2,818 Kb |
Layout Design | 3,488 Kb |
Button with Hover Effect | 2,698 Kb |
Svg Stars Experiment | 4,245 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 |
Ghost | Mghayour | 11,738 Kb |
A Pen by Adrien Clerbois | AClerbois | 6,501 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Fellowship of the Ring | Aussieyang | 2,639 Kb |
Loading animation | Codeams | 2,408 Kb |
Drag and Drop Quiz | Cgspicer | 3,837 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
Owl Carousel - jumpTo | OwlFonk | 2,553 Kb |
FontAwesome icons with animation | Nicotinell | 2,083 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!