JSFiddle - React, Tailwind, and code Playground

by Torwan

HTML

<div class="container">
  <h2>Material Design in CSS3 for project<br />My Account<small>Inputs</small></h2>
  <form>
    <div class="ndl-group">
      <input type="text" required>
      <span class="highlight"></span>
      <span class="bar"></span>
      <label>Imie</label>
    </div>

    <div class="ndl-group">
      <input type="text">
      <span class="highlight"></span>
      <span class="bar"></span>
      <label>Nazwisko</label>
    </div>

    <div class="ndl-group">
      <input type="text" required>
      <span class="highlight"></span>
      <span class="bar"></span>
      <label>Adres e-mail</label>
    </div>
  </form>
</div>

<div class="button_container">
  <p class="description">Button hover WOW!</p>
  <button class="btn"><span>Hover effect!</span></button>
</div>

CSS

@import url('https://fonts.googleapis.com/css?family=Amatic+SC:400,700|Titillium+Web:200,200i,300,300i,400,400i,600,600i,700,700i');
* {
  box-sizing: border-box;
}

/* basic stylings ------------------------------------------ */

body {
  background-image: linear-gradient(to top, #FFC09B 0%, #68D5E1 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Titillium Web', sans-serif;
}

.container {
  width: 600px;
  margin: 30px auto 0;
  display: block;
  background: rgba(255, 255, 255, 0.4);
  padding: 10px 50px 50px;
}

h2 {
  text-align: center;
  margin-bottom: 50px;
}

h2 small {
  font-weight: normal;
  color: #888;
  display: block;
}

/* form starting stylings ------------------------------- */

.ndl-group {
  position: relative;
  margin-bottom: 45px;
}

input {
  font-size: 18px;
  padding: 10px 10px 10px 5px;
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #757575;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

input:focus {
  outline: none;
}

/* LABEL ======================================= */

label {
  color: #878787;
  font-size: 18px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 10px;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

/* active state */

input:focus~label,
input:valid~label {
  top: -20px;
  font-size: 14px;
  color: #878787;
}

/* BOTTOM BARS ================================= */

.bar {
  position: relative;
  display: block;
  width: 100%;
}

.bar:before,
.bar:after {
  content: '';
  height: 3px;
  width: 0;
  bottom: 0px;
  position: absolute;
  background: #FF5A0A;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

.bar:before {
  left: 50%;
}

.bar:after {
  right: 50%;
}

/* active state */

input:focus~.bar:before,
input:focus~.bar:after {
  width: 50%;
}

/* HIGHLIGHTER...