Flicker - testing - 1

by Adrian Carriger

HTML

<div class="btn-super-container">
  <div  class="btn-container">
    <button class="btn btn-primary btn-lg">
      Submit
    </button>
    <div class="mask">
    </div>
    <div class="background">
    </div>
  </div>
</div>

CSS

button,
input,
select,
textarea {
  margin: 0;
  font-size: 100%;
  vertical-align: middle;
}

button,
input {
  *overflow: visible;
  line-height: normal;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
}

label,
select,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

label,
input,
button,
select,
textarea {
  font-size: 14px;
  font-weight: normal;
  line-height: 20px;
}

input,
button,
select,
textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

input,
textarea,
.uneditable-input {
  width: 206px;
}

input[type="file"],
input[type="image"],
input[type="submit"],
input[type="reset"],
input[type="button"],
input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
  color: #999999;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #999999;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #999999;
}

input,
textarea,
.uneditable-input {
  margin-left: 0;
}


/* New  */
.btn-super-container {
  overflow: hidden;
}
.btn-container {
  display: inline-block;
  position: relative;
  border-radius: 4px;
}
.background {
  content: "";
  background-color: red;
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  width: 100%;
  height: 45px;
  z-index: -1;
  background-image: linear-gradient(to bottom, yellow 0%, purple 66%, red 66%, red 100%);
  background-repeat: repeat-x;
}

.btn-container:hover .background {
  transform: translateY(-15px);
  -webkit-transition: transform 3s linear;
     -moz-transition: transform 3s linear;
       -o-transition: transform 3s linear;
          transition: transform 3s linear;
}
.btn {
  background-color: transparent;
}
.mask {
 ...