<!-- 
I in no way own the sprites used in this pen. These sprites were created for Borderlands.com by Gearbox Software LLC.
-->

<div class="center">
  <div class="button">
    <div class="button__left"></div>
    <div class="button__inner">
      <p class="tk-countach">Sprite Button</p>
    </div>
    <div class="button__right"></div>
  </div>
</div>
// I in no way own the sprites used in this pen. 
// These sprites were created for Borderlands.com 
// by Gearbox Software LLC.

body {
  background-color: black;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sprite {
  background-image: url("https://assets.codepen.io/4628805/sprite-ui-2x.png");
  background-size: 475px 440px;
  width: 28px;
  height: 61px;
  position: relative;
  display: block;
  cursor: pointer;
  flex: 1 1 auto;
}

.button {
  transition: transform 400ms ease-in-out;
  display: flex;
  &:hover {
    transform: translateY(-3px);
  }

  &__left {
    @extend .sprite;
    background-position: -286px -341px;
  }

  &__right {
    @extend .sprite;
    background-position: -257px -341px;
  }
}

.button__inner {
  background-image: url("https://assets.codepen.io/4628805/button-yellow-m.png");
  background-size: 100% 100%;
  display: inline-block;
  height: 61px;
  min-width: 165px;
  margin-left: -1px;
  margin-right: -1px;
  text-align: center;
  cursor: pointer;
  flex: 1 1 auto;
  p {
    display: inherit;
    font-size: 20px;
    margin-top: 18px;
    font-style: italic;
    text-transform: uppercase;
  }
}
View Compiled

External CSS

  1. https://use.typekit.net/ntb0vxk.css

External JavaScript

This Pen doesn't use any external JavaScript resources.