/ Button

Pure CSS Gradient Border Button

Pure CSS Gradient Border Button

Gradient Border Button

Pure CSS Gradient Border Button.

Made with

Html
Css

Html

<button class="button">I'm A Button!</button>

Css

button.button {
  border-radius: 100rem;
  padding: 1rem;
  font-family: 'Avenir Next';
  font-size: 1rem;
  padding: .5rem 3rem;
  color: $color-black;
  box-shadow: 0 0 6px 0 rgba(157, 96, 212, 0.5);
  border: solid 3px transparent;
  background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(101deg, #78e4ff, #ff48fa);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 2px 1000px 1px #fff inset;
}

button.button:hover {
  box-shadow: none;
  color: white;
}

Author

Mira

Demo

See the Pen Pure CSS Gradient Border Button by Mira (@moriah) on CodePen.