JSFiddle - React, Tailwind, and code Playground

by adamschwartz

HTML

<div class="background-image"></div>
<div class="box">
    <div class="glass"></div>
    <div class="content">
        <h1>Welcome</h1>
        <input type="text" placeholder="username"/>
        <input type="password" placeholder="&#9679;&#9679;&#9679;&#9679;&#9679;&#9679;&#9679;&#9679;"/>
    </div>
</div>

CSS

@import url(http://fonts.googleapis.com/css?family=Roboto:100);

html, body {
    height: 100%;
    width: 100%;
    background: #000;
    margin: 0px;
    padding: 0px;
}

.background-image {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
}

.background-image, .glass {
    -webkit-transition: opacity 2s;
    background: url("http://fc08.deviantart.net/fs30/f/2008/146/d/3/Grunge_Backgrounds___Paper_by_zerocustom1989.png");
    background-position: 50% 50%;
    opacity: 0;
}

.box {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 440px;
    width: 600px;
    margin-top: -220px;
    margin-left: -300px;
}

.glass, .content {
    position: absolute;
    top: 0px;
    left: 0px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 40px;
}

.glass {
    border-radius: 5px;
    -webkit-filter: blur(5px);
}

.content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 -1px rgba(255, 255, 255, 0.2);
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    color: #eee;
    font-weight: 100;
    text-shadow: 0 1px rgba(0, 0, 0, 0.3);
}

.content h1 {
    font-weight: 100;
    font-size: 60px;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 100px;
}

.content span {
    font-weight: 200;
    font-size: 30px;
    padding: 30px;
    line-height: 100px;
}

.content input {
     font-family: "Helvetica Neue", Helvetica, sans-serif;
    -webkit-transition: background 0.4s, box-shadow 0.4s, color 0.2s;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    font-size: 30px;
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    font-weight: 100;
    text-shadow: 0 1px rgba(0, 0, 0, 0.3);
    margin-bottom: 26px;
    outline: none;
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.01);
   ...

JavaScript

$('input:first').focus();

var width = $(window).width();
$('.glass, .background-image').css('background-size', width).css('opacity', 1);
setInterval(function(){
    //$('.glass, .background-image').css('background-size', width++);
}, 50);