{"id":2402,"date":"2017-04-26T19:49:25","date_gmt":"2017-04-26T19:49:25","guid":{"rendered":"http:\/\/cssreset.com\/?p=2402"},"modified":"2017-04-26T19:49:25","modified_gmt":"2017-04-26T19:49:25","slug":"8-cool-css-snippets-for-text-inputs","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/8-cool-css-snippets-for-text-inputs\/","title":{"rendered":"8 Cool CSS Snippets for Text Inputs"},"content":{"rendered":"<p>Input fields are HTML elements that are there for the user to have a place to input text. Usually they&#8217;re part of some sort of form, and usually they&#8217;re kind of ignored when it comes to styling. If not totally ignored, they&#8217;re typically pretty low maintenance. Maybe a designer will add a cool color or a soft border-radius, but often that&#8217;s about it. It&#8217;s a shame that they don&#8217;t often have a lot of style applied to them, because they&#8217;ve got so much potential! If you want to give a little love and flair to your text input fields, take a look at the list of input snippets below for a little inspiration.<\/p>\n<p>1. <a href=\"http:\/\/codepen.io\/lbebber\/pen\/uEHzD\" target=\"_blank\">Floating Labels Input Field\u00a0<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/lbebber\/pen\/uEHzD\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2403 aligncenter\" alt=\"Screen Shot 2017-04-20 at 5.56.39 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-5.56.39-PM-1024x566.png\" width=\"1024\" height=\"566\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-5.56.39-PM-1024x566.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-5.56.39-PM-300x166.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-5.56.39-PM-180x99.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-5.56.39-PM.png 1062w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The floating labels in this snippet have a very minimalist style, but when they&#8217;re focused on, there&#8217;s a cool effect where the labels (which might appear as though they&#8217;re placeholder text, but they aren&#8217;t!) change from grey to blue. When you start typing, they get very small and, using CSS transitions, move smoothly to the top of the input field.<\/p>\n<p>2. <a href=\"http:\/\/codepen.io\/MichaelArestad\/pen\/ohLIa\" target=\"_blank\">Expanding Text Inputs<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/MichaelArestad\/pen\/ohLIa\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2404 aligncenter\" alt=\"Screen Shot 2017-04-20 at 6.03.01 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.03.01-PM-1024x109.png\" width=\"1024\" height=\"109\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.03.01-PM-1024x109.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.03.01-PM-300x32.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.03.01-PM-180x19.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.03.01-PM.png 1624w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The input fields in this snippet expand when you click on them. They smoothly expand not only to make more room for the text input, but also to reveal placeholder text, which is a \u00a0nice touch.<\/p>\n<p>3. <a href=\"http:\/\/codepen.io\/sntran\/pen\/mydoYG\" target=\"_blank\">Single Input 3D Form<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/sntran\/pen\/mydoYG\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2405 aligncenter\" alt=\"Screen Shot 2017-04-20 at 6.05.04 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.05.04-PM.png\" width=\"816\" height=\"100\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.05.04-PM.png 816w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.05.04-PM-300x36.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.05.04-PM-180x22.png 180w\" sizes=\"(max-width: 816px) 100vw, 816px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This very unique input form snippet gives a text input field a 3D effect that is revealed upon hover. The whole effect is very smooth and professional looking. Would be a great addition for anyone looking to add both flair and polish to their projects.<\/p>\n<p>4. <a href=\"http:\/\/codepen.io\/see8ch\/pen\/KpLrd\" target=\"_blank\">Input Field with Hover Effects\u00a0<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/see8ch\/pen\/KpLrd\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2406 aligncenter\" alt=\"Screen Shot 2017-04-20 at 6.07.59 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.07.59-PM-1024x346.png\" width=\"1024\" height=\"346\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.07.59-PM-1024x346.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.07.59-PM-300x101.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.07.59-PM-180x60.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.07.59-PM.png 1206w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This snippet creates sleek input fields that have beautiful hover effects. When they&#8217;re hovered upon, the label smoothly slides to the left to reveal the actual input field where a user can input text.<\/p>\n<p>5. <a href=\"http:\/\/codepen.io\/fluxus\/pen\/xwDzB\" target=\"_blank\">Input with Focus Animation<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/fluxus\/pen\/xwDzB\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2407 aligncenter\" alt=\"Screen Shot 2017-04-20 at 6.11.03 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.11.03-PM.png\" width=\"712\" height=\"208\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.11.03-PM.png 712w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.11.03-PM-300x87.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.11.03-PM-180x52.png 180w\" sizes=\"(max-width: 712px) 100vw, 712px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The input field in this snippet has a smooth CSS animation that occurs when the input field is focused on. The label shifts position, and the pen icon appears and moves back and forth as if it were writing something.<\/p>\n<p>6. <a href=\"http:\/\/codepen.io\/waynedunkley\/pen\/mJbdZO\" target=\"_blank\">Animated Search Input<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/waynedunkley\/pen\/mJbdZO\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2408 aligncenter\" alt=\"Screen Shot 2017-04-20 at 6.14.56 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.14.56-PM.png\" width=\"536\" height=\"272\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.14.56-PM.png 536w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.14.56-PM-300x152.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.14.56-PM-180x91.png 180w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This search input field snippet appears when the magnifying glass icon is clicked on. It includes a nice smooth CSS transition, and an exit icon in case you revealed the search input by mistake.<\/p>\n<p>7. <a href=\"http:\/\/codepen.io\/atunnecliffe\/pen\/gpKzQw\" target=\"_blank\">Stylish Input Boxes\u00a0<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/atunnecliffe\/pen\/gpKzQw\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2409 aligncenter\" alt=\"Screen Shot 2017-04-20 at 6.21.11 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.21.11-PM-1024x247.png\" width=\"1024\" height=\"247\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.21.11-PM-1024x247.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.21.11-PM-300x72.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.21.11-PM-180x43.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.21.11-PM.png 1842w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This input field snippet creates super stylish input fields that include smooth CSS transitions that are triggered when the input field is focused on. The transitions give the snippet a nice animated effect.<\/p>\n<p>8. <a href=\"http:\/\/codepen.io\/abergin\/pen\/jIplf\" target=\"_blank\">Fancy Text Inputs<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/abergin\/pen\/jIplf\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2410 aligncenter\" alt=\"Screen Shot 2017-04-20 at 6.26.10 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.26.10-PM.png\" width=\"966\" height=\"550\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.26.10-PM.png 966w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.26.10-PM-300x170.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-20-at-6.26.10-PM-180x102.png 180w\" sizes=\"(max-width: 966px) 100vw, 966px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>These text inputs are super stylish and can be used to add a cool vibe to just about any project with a modern style and sensibility.<\/p>\n<div class=\"wp-socializer wpsr-share-icons \" data-lg-action=\"show\" data-sm-action=\"show\" data-sm-width=\"768\" ><h3>Share and Enjoy !<\/h3><div class=\"wpsr-si-inner\"><div class=\"wpsr-counter wpsrc-sz-32px\" style=\"color:#000\"><span class=\"scount\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook,twitter,linkedin,pinterest,print,pdf\">0<\/span><\/span><small class=\"stext\">Shares<\/small><\/div><div class=\"socializer sr-popup sr-32px sr-circle sr-opacity sr-pad sr-count-1 sr-count-1\"><span class=\"sr-facebook\"><a rel=\"nofollow\" href=\"https:\/\/www.facebook.com\/share.php?u=\" target=\"_blank\"  title=\"Share this on Facebook\"  style=\"color: #ffffff\" ><i class=\"fab fa-facebook-f\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-twitter\"><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/intent\/tweet?text=%20-%20%20\" target=\"_blank\"  title=\"Tweet this !\"  style=\"color: #ffffff\" ><i class=\"fab fa-twitter\"><\/i><\/a><\/span>\n<span class=\"sr-linkedin\"><a rel=\"nofollow\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=\" target=\"_blank\"  title=\"Add this to LinkedIn\"  style=\"color: #ffffff\" ><i class=\"fab fa-linkedin-in\"><\/i><\/a><\/span>\n<span class=\"sr-pinterest\"><a rel=\"nofollow\" href=\"https:\/\/www.pinterest.com\/pin\/create\/button\/?url=&amp;media=&amp;description=\" target=\"_blank\"  title=\"Submit this to Pinterest\"  style=\"color: #ffffff\" data-pin-custom=\"true\"><i class=\"fab fa-pinterest\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"pinterest\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-print\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Print this article \"  style=\"color: #ffffff\" ><i class=\"fa fa-print\"><\/i><\/a><\/span>\n<span class=\"sr-pdf\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Convert to PDF\"  style=\"color: #ffffff\" ><i class=\"fa fa-file-pdf\"><\/i><\/a><\/span><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Input fields are HTML elements that are there for the user to have a place to input text. Usually they&#8217;re part of some sort of form, and usually they&#8217;re kind of ignored when it comes to styling. If not totally [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/8-cool-css-snippets-for-text-inputs\/\" title=\"Click to read '8 Cool CSS Snippets for Text Inputs'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":2410,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2402"}],"collection":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/comments?post=2402"}],"version-history":[{"count":1,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2402\/revisions"}],"predecessor-version":[{"id":2411,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2402\/revisions\/2411"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media\/2410"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=2402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=2402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=2402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}