Login / Join
Material design Input Pure CSS
submitted on 28/11/2018 by
Codicode
+ infos
Config
Embed
Share
Material design Input Pure CSS
by
Codicode
Pure css material design like input
Framework 1 :
-- None --
jQuery 2.0.3
jQuery 1.9.1
jQuery 1.9.0
jQuery 1.8.0
jQuery 1.7.1
jQuery 1.6.3
jQuery UI 1.10.3
MooTools 1.4.5
AngularJS 1.0.4
Prototype 1.7.1.0
Dojo 1.8.3
Chrome Frame 1.0.3
Ext Core 3.1.0
SWFObject 2.2
WebFont Loader 1.1.2
Framework 2 :
-- None --
jQuery 2.0.3
jQuery 1.9.1
jQuery 1.9.0
jQuery 1.8.0
jQuery 1.7.1
jQuery 1.6.3
jQuery UI 1.10.3
MooTools 1.4.5
AngularJS 1.0.4
Prototype 1.7.1.0
Dojo 1.8.3
Chrome Frame 1.0.3
Ext Core 3.1.0
SWFObject 2.2
WebFont Loader 1.1.2
+ Js file(s) :
+ Css file(s) :
Apply
Link :
Direct http link :
Fork button :
Html code :
Embed preview :
Copy the following html code to your page to embed the preview,
To include many previews on a single page, just repeat the first line.
You can change the width, height and border color (bcolor).
<div class="refork-widget" code="4b0" style="width:100%;height:200px;" bcolor="#ccc"></div>
<script type="text/javascript" src="//snippet.run/d/z.js"></script>
HTML
<div> <input type="text" required /> <label>Adresse e-mail</label> </div> <div class="material"> <input type="text" required /> <label>Adresse e-mail</label> </div> <div class="material"> <input type="password" required /> <label>Mot de passe</label> </div> <div> by Malek chtioui </div>
CSS
@import url('https://fonts.googleapis.com/css?family=Sedgwick+Ave'); body{ font-family: 'Sedgwick Ave', cursive; background-color:black; color:#fff; padding:20px; } .material input { font-family: 'Sedgwick Ave', cursive; margin: 40px 25px; padding: 10px 0; width: 200px; display: block; border: none; border-bottom: solid 1px #aaa; -webkit-transition: all 0.3s cubic-bezier(0.64, 0.09, 0.08, 1); transition: all 0.3s cubic-bezier(0.64, 0.09, 0.08, 1); background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 95%, #fff 4%); background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 95%, #fff 4%); background-position: -200px 0; background-size: 200px 100%; background-repeat: no-repeat; color: #fff; } .material{ position: relative; } .material input:required { box-shadow:none; outline: none; } .material input:focus { background-position: 0 0; } .material input + label { position:absolute; top : 10px; left: 30px; transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out; pointer-events: none; color:#999; } .material input:focus + label,.material input:valid + label { color:#fff; font-size: 9px; -webkit-transform: translateY(-20px); transform: translateY(-20px); visibility: visible !important; } .material input:invalid:focus + label { color:red; }
Javascript
©2013 Copyright snippet.run
Privacy
-
Terms of use
-
About
-
Contact