<div class="menu-collapsed"> <div class="bar"></div> <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Clients</a></li> <li><a href="#">Contact Us</a></li> </ul> </nav> </div> <div class="intro"> <h1 class="animate bounce">UI Kit</h1> <p>Always Changing</p> </div> <div class="buttons"> <button class="btn btn-1">Hello</button> <button class="btn btn-2">Hello</button> <button class="btn btn-4">Hello</button> <button class="btn btn-6">Hello</button> <button class="btn btn-7">Hello</button> </div> <div class="space"></div> <div class="form-elements"> <form> <div class="field name-box"> <input type="text" id="name" placeholder=" Who Are You?"/> <label for="name">NAME</label> <span class="ss-icon">check</span> </div> <div class="small-space"></div> <input type="range" min="-100" max="0" value="0" class="range blue"/> <div class="small-space"></div> <div class="boxes"> <input type="checkbox" id="box-1"> <label for="box-1">A couple of</label> <input type="checkbox" id="box-2" checked> <label for="box-2">Pretty Cool</label> <input type="checkbox" id="box-3"> <label for="box-3">Checkboxes</label> </div> </form> </div> <div class="space"></div> @import url(https://fonts.googleapis.com/css?family=Varela+Round); html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; vertical-align: baseline; } body { display: inline-block; color: white; width: 50%; height: 50%; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; text-align: center; font-family: 'Varela Round', 'Century Gothic', CenturyGothic, AppleGothic, sans-serif; background-image: url('https://images.unsplash.com/photo-1446080501695-8e929f879f2b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=f73dbe9251db2863a37f447cfdd47ec3'); /* Background image is centered vertically and horizontally at all times */ background-position: center center; /* Background image doesn't tile */ background-repeat: no-repeat; /* Background image is fixed in the viewport so that it doesn't move when the content's height is greater than the image's height */ background-attachment: fixed; /* This is what makes the background image rescale based on the container's size */ background-size: cover; /* Set a background color that will be displayed while the background image is loading */ background-color: #464646; } .space { padding: 50px; } .small-space { padding: 15px; } form { width: 58.33333%; margin: 0 auto; } form .field { width: 100%; position: relative; margin-bottom: 15px; } form .field label { text-transform: uppercase; position: absolute; top: 0; left: 0; background: #313A3D; width: 100%; padding: 18px 0; font-size: 1.45em; letter-spacing: 0.075em; -webkit-transition: all 333ms ease-in-out; -moz-transition: all 333ms ease-in-out; -o-transition: all 333ms ease-in-out; -ms-transition: all 333ms ease-in-out; transition: all 333ms ease-in-out; } form .field label + span { font-family: 'SSStandard'; opacity: 0; color: white; display: block; position: absolute; top: 12px; left: 7%; font-size: 2.5em; text-shadow: 1px 2px 0 #cd6302; -webkit-transition: all 333ms ease-in-out; -moz-transition: all 333ms ease-in-out; -o-transition: all 333ms ease-in-out; -ms-transition: all 333ms ease-in-out; transition: all 333ms ease-in-out; } form .field input[type="text"], form .field textarea { border: none; background: #E8E9EA; width: 80.5%; margin: 0; padding: 18px 0; padding-left: 19.5%; color: #313A3D; font-size: 1.4em; letter-spacing: 0.05em; text-transform: uppercase; } form .field input[type="text"]#msg, form .field textarea#msg { height: 18px; resize: none; -webkit-transition: all 333ms ease-in-out; -moz-transition: all 333ms ease-in-out; -o-transition: all 333ms ease-in-out; -ms-transition: all 333ms ease-in-out; transition: all 333ms ease-in-out; } form .field input[type="text"]:focus, form .field input[type="text"].focused, form .field textarea:focus, form .field textarea.focused { outline: none; } form .field input[type="text"]:focus#msg, form .field input[type="text"].focused#msg, form .field textarea:focus#msg, form .field textarea.focused#msg { padding-bottom: 150px; } form .field input[type="text"]:focus + label, form .field input[type="text"].focused + label, form .field textarea:focus + label, form .field textarea.focused + label { width: 25%; background: #FD9638; color: #313A3D; } form .field input[type="text"].focused + label, form .field textarea.focused + label { color: #FD9638; } form .field:hover label { width: 25%; background: #313A3D; color: white; } .range { -webkit-appearance: none; -moz-appearance: none; } input[type=range]::-webkit-slider-runnable-track { -webkit-appearance: none; background: rgba(59, 173, 227, 1); background: -moz-linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(59, 173, 227, 1)), color-stop(25%, rgba(87, 111, 230, 1)), color-stop(51%, rgba(152, 68, 183, 1)), color-stop(100%, rgba(255, 53, 127, 1))); background: -webkit-linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); background: -o-linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); background: -ms-linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); background: linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#3bade3 ', endColorstr='#ff357f ', GradientType=1); height: 2px; } input[type=range]:focus { outline: none; } input[type=range]::-moz-range-track { -moz-appearance: none; background: rgba(59, 173, 227, 1); background: -moz-linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(59, 173, 227, 1)), color-stop(25%, rgba(87, 111, 230, 1)), color-stop(51%, rgba(152, 68, 183, 1)), color-stop(100%, rgba(255, 53, 127, 1))); background: -webkit-linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); background: -o-linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); background: -ms-linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); background: linear-gradient(45deg, rgba(59, 173, 227, 1) 0%, rgba(87, 111, 230, 1) 25%, rgba(152, 68, 183, 1) 51%, rgba(255, 53, 127, 1) 100%); filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#3bade3 ', endColorstr='#ff357f ', GradientType=1); height: 2px; } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; border: 2px solid; border-radius: 50%; height: 25px; width: 25px; max-width: 80px; position: relative; bottom: 11px; background-color: #1d1c25; cursor: -webkit-grab; -webkit-transition: border 1000ms ease; transition: border 1000ms ease; } input[type=range]::-moz-range-thumb { -moz-appearance: none; border: 2px solid; border-radius: 50%; height: 25px; width: 25px; max-width: 80px; position: relative; bottom: 11px; background-color: #1d1c25; cursor: -moz-grab; -moz-transition: border 1000ms ease; transition: border 1000ms ease; } .range.blue::-webkit-slider-thumb { border-color: rgb(59, 173, 227); } .range.ltpurple::-webkit-slider-thumb { border-color: rgb(87, 111, 230); } .range.purple::-webkit-slider-thumb { border-color: rgb(152, 68, 183); } .range.pink::-webkit-slider-thumb { border-color: rgb(255, 53, 127); } .range.blue::-moz-range-thumb { border-color: rgb(59, 173, 227); } .range.ltpurple::-moz-range-thumb { border-color: rgb(87, 111, 230); } .range.purple::-moz-range-thumb { border-color: rgb(152, 68, 183); } .range.pink::-moz-range-thumb { border-color: rgb(255, 53, 127); } input[type=range]::-webkit-slider-thumb:active { cursor: -webkit-grabbing; } input[type=range]::-moz-range-thumb:active { cursor: -moz-grabbing; } p { font-size: 20px; color: white; } .btn { border: none; font-family: inherit; font-size: inherit; color: inherit; background: none; cursor: pointer; padding: 25px 80px; display: inline-block; margin: 15px 30px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; outline: none; position: relative; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; } .btn:after { content: ''; position: absolute; z-index: -1; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; } /* Button 1 */ .btn-1 { border: 3px solid #fff; color: #fff; } /* Button 1a */ .btn-1:hover, .btn-1:active { color: #0e83cd; background: #fff; } /* Button 2 */ .btn-2 { background: #cb4e4e; color: #fff; box-shadow: 0 6px #ab3c3c; -webkit-transition: none; -moz-transition: none; transition: none; border-radius: 5px; } .btn-2:hover { box-shadow: 0 4px #ab3c3c; top: 2px; } .btn-2:active { box-shadow: 0 0 #ab3c3c; top: 6px; } /* Button 4 */ .btn-4 { border-radius: 50px; border: 3px solid #fff; color: #fff; overflow: hidden; } .btn-4:active { border-color: #17954c; color: #17954c; } .btn-4:hover { background: #24b662; } .btn-4:before { position: absolute; height: 100%; font-size: 125%; line-height: 3.5; color: #fff; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; } .btn-4:active:before { color: #17954c; } /* Button 4a */ .btn-4:before { left: 130%; top: 0; } .btn-4:hover:before { left: 80%; } /* Button 6 */ .btn-6 { color: #fff; background: #226fbe; -webkit-transition: none; -moz-transition: none; transition: none; border: 4px solid #226fbe; } .btn-6:active { top: 2px; } .btn-6:hover { background: transparent; color: #226fbe; } .btn-7 { background: linear-gradient(25deg, #1DDD77, #1C6FE3); display: table; background-size: 200% 200% !important; color: #fff; text-transform: uppercase; text-decoration: none; letter-spacing: 1px; padding: 1.3em 1.5em; margin: 1.5em auto; border-radius: 0.3em; -webkit-transition: all 200ms linear; } .btn-7:hover { background-size: 110% 110% !important; padding: 1.3em 2.1em; -webkit-transition: all 200ms linear; } /* Checkboxes */ .boxes { margin: auto; padding: 50px; } /*Checkboxes styles*/ input[type="checkbox"] { display: none; } input[type="checkbox"] + label { display: block; position: relative; padding-left: 35px; margin-bottom: 20px; font: 14px/20px 'Open Sans', Arial, sans-serif; color: #ddd; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } input[type="checkbox"] + label:last-child { margin-bottom: 0; } input[type="checkbox"] + label:before { content: ''; display: block; width: 20px; height: 20px; border: 1px solid #6cc0e5; position: absolute; left: 0; top: 0; opacity: .6; -webkit-transition: all .12s, border-color .08s; transition: all .12s, border-color .08s; } input[type="checkbox"]:checked + label:before { width: 10px; top: -5px; left: 5px; border-radius: 0; opacity: 1; border-top-color: transparent; border-left-color: transparent; -webkit-transform: rotate(45deg); transform: rotate(45deg); } /* Hamburger Menu */ .menu-collapsed { font-family: 'Varela Round', 'Century Gothic', sans-serif; transition: all .25s; position: fixed; top: 10px; left: 9px; height: 36px; width: 36px; z-index: 1; cursor: pointer; } .menu-collapsed ul { transition: all .05s; position: fixed; left: -9000px; } .bar { position: fixed; left: 12px; top: 24px; height: 6px; width: 30px; border-radius: 15px; background-color: rgba(255, 255, 255, 0.75); } .bar:before { transition: all .25s; content: ""; position: absolute; left: 0; top: -8px; height: 6px; width: 30px; border-radius: 15px; background-color: rgba(255, 255, 255, 0.75); } .bar:after { transition: all .25s; content: ""; position: absolute; left: 0; top: 8px; height: 6px; width: 30px; border-radius: 15px; background-color: rgba(255, 255, 255, 0.75); } .menu-expanded { transition: all .25s; text-align: center; line-height: 200px; height: 100%; width: 100%; border-radius: 0px; top: 0; left: 0; background-color: rgba(0, 0, 0, 0.85); } .menu-expanded ul { transition: all .05s; position: relative; left: 0; z-index: 2; } .menu-expanded a { transition: all .15s; text-decoration: none; color: white; font-size: 2em; font-family: 'Quicksand', sans-serif; padding: 5px; } .menu-expanded a:hover { transition: all .15s; letter-spacing: 2px; border: 1px solid rgba(255, 255, 255, 0.15); } .menu-expanded .bar { background-color: transparent; transition: all .25s; } .menu-expanded .bar:before { transition: all .25s; content: ""; transform: rotate(45deg); top: -0px; } .menu-expanded .bar:after { transition: all .25s; content: ""; transform: rotate(-45deg); top: 0px; } /* Grid System */ .container { width: 1000px; margin: 0 auto } .pull-left { float: left } .pull-right { float: right } .row { min-height: 2em; line-height: 2em; width: 100% } .span { float: left; display: inline; min-height: 1em; margin: 0 2% 20px 2% } .span:first-child { margin-left: 0 } .span:last-child { margin-right: 0 } .one { width: 8% } .two { width: 16% } .three { width: 24% } .four { width: 32% } .five { width: 40% } .six { width: 48% } .seven { width: 56% } .eight { width: 64% } .nine { width: 72% } .ten { width: 80% } .eleven { width: 88% } .twelve { width: 100% } .container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden } .row:before, .row:after { content: '\0020'; display: block; overflow: hidden; visibility: hidden; width: 0; height: 0 } .row:after { clear: both } .row { zoom: 1 } @media only screen and (min-width: 768px) and (max-width: 999px) { .container { width: 768px } } @media only screen and (max-width: 767px) { .container { width: 300px } } @media only screen and (min-width: 480px) and (max-width: 767px) { .container { width: 420px } } /* Animations */ @keyframes bounce { from, 20%, 53%, 80%, to { animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); transform: translate3d(0,0,0); } 40%, 43% { animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060); transform: translate3d(0, -30px, 0); } 70% { animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060); transform: translate3d(0, -15px, 0); } 90% { transform: translate3d(0,-4px,0); } } .bounce { animation-name: bounce; transform-origin: center bottom; } @keyframes bounceIn { from, 20%, 40%, 60%, 80%, to { animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); } 0% { opacity: 0; transform: scale3d(.3, .3, .3); } 20% { transform: scale3d(1.1, 1.1, 1.1); } 40% { transform: scale3d(.9, .9, .9); } 60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); } 80% { transform: scale3d(.97, .97, .97); } to { opacity: 1; transform: scale3d(1, 1, 1); } } .bounceIn { animation-name: bounceIn; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .fadeIn { animation-name: fadeIn; } .animate { animation-duration: 1s; animation-fill-mode: both; } .animate.infinite { animation-iteration-count: infinite; } $(".menu-collapsed").click(function() { $(this).toggleClass("menu-expanded"); }); Навигация по записям Animated button Download Button Animation