<form>
  <div class="input-satiri">
    <input name="ad" placeholder="İsminizi girin">
    <label>İsim</label>
  </div>
</form>
.input-satiri {
  width: 280px;
  margin: 0 auto;
  position: relative;
}

.input-satiri input {
    font: inherit;
    color: rgba(0, 0, 0, 0.87);
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.23);
}

.input-satiri input:focus {
  outline: none;
  border: 1px solid lightblue;
}

.input-satiri label {
  display: block;
  position: absolute;
  bottom: 50%;
  left: 1rem;
  color: rgba(0, 0, 0, 0.37);
  font-family: inherit;
  font-size: 2.1rem;
  font-weight: inherit;
  line-height: 1.8;
  opacity: 0;
  background: white;
  padding: 0 5px;
  transform: translate3d(0, 50%, 0) scale(1);
  transform-origin: 0 0;
  transition:
    opacity 300ms cubic-bezier(0.645, 0.045, 0.355, 1),
    transform 300ms cubic-bezier(0.645, 0.045, 0.355, 1),
    z-index 0ms 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

.input-satiri input:placeholder-shown + label {
  visibility: hidden;
  z-index: -1;
}

.input-satiri input:not(:placeholder-shown) + label,
.input-satiri input:focus:not(:placeholder-shown) + label {
  visibility: visible;
  z-index: 1;
  opacity: 1;
  transform: translate3d(0, calc(50% - 1rem), 0) scale(0.5);
  transition: transform 300ms, z-index 0ms;
}



@import url('https://fonts.googleapis.com/css?family=Merriweather+Sans:300,800');

body {
  font-size: 20px;
  font-family: 'Merriweather Sans', sans-serif;
  background: #f5f5f5;
  padding: 50px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.