css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!-- Buttons made by SC Manta for Media Militia (mediamilitia.com).-->


<!-- Styles for the demo -->
<style>
body {
  background:black;
  color: white;
}
a {
  text-decoration: none;
  font-family: sans-serif;
  letter-spacing: 2px;
  font-size:16px;
  text-transform:uppercase;
}
</style>



<!-- BEGIN BUTTON 1 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-diagonal-contain {
  max-width: 160px;
  text-decoration:none;
}
.btn-diagonal {
  outline: none;
  cursor: pointer;
  max-width: 270px;
  min-height: 50px;
  background: transparent;
  border: 3px solid rgba(255,255,255,0.5);
  -webkit-transform: skew(-25deg);
  transform: skew(-25deg);
  margin: 10px auto;
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}
.btn-diagonal-contain:hover .btn-diagonal {
  -webkit-transform: skew(0deg);
  -moz-transform: skew(0deg);
  -o-transform: skew(0deg);
  -ms-transform: skew(0deg);
  transform: skew(0deg);
  border: 3px solid white;
}
.btn-diagonal-inner {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  top: 50px;
  font-weight: bold;
  color: rgba(255,255,255,0.5);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}
.btn-diagonal-contain:hover  .btn-diagonal-inner {
	color: rgba(255,255,255,1);
}
</style>

<div class="btn-contain">
  <a href="http://mediamilitia.com" class="btn-diagonal-contain">
  	<div class="btn-diagonal-inner">Hover me</div>
  	<div class="btn-diagonal"></div>
  </a>
</div>
<!-- END BUTTON 1 -->



<!-- BEGIN BUTTON 2 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-gradient-contain {
  position: absolute;
  width: 99%;
  margin: 0 auto;
  text-align: center;
}
.btn-gradient {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  position: relative;
  display: inline-block;
  width: 277px;
  height: 50px;
  line-height: 60px;
  background-color: transparent;
}
.btn-gradient svg {
  position: absolute;
  top: 0;
  left: 0;
}
.btn-gradient svg rect {
  stroke-width: 4;
  stroke-dasharray: 196, 543;
  stroke-dashoffset: 386;
  -webkit-transition: all 600ms ease;
  transition: all 600ms ease;
}
.btn-gradient span{
  background: rgb(255,130,130);
  background: -moz-linear-gradient(left,  rgba(64,224,208,1) 0%, rgba(225,165,0,1) 100%);
  background: -webkit-linear-gradient(left,  rgba(64,224,208,1) 0%, rgba(225,165,0,1) 100%);
  background: linear-gradient(to right,  rgba(64,224,208,1) 0%, rgba(225,165,0,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#40e0d0', endColorstr='#ffa500',GradientType=1 );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient:hover svg rect {
  stroke-width: 4;
  stroke-dasharray: 353, 0;
  stroke-dashoffset: 0;
}
</style>
<div class="btn-contain">
<div class="btn-gradient-contain">
<a href="http://mediamilitia.com" class="btn-gradient">
  <svg width="277" height="62">
    <defs>
        <linearGradient id="grad1">
            <stop offset="0%" stop-color="#40e0d0"/>
            <stop offset="100%" stop-color="#ffa500" />
        </linearGradient>
    </defs>
     <rect x="5" y="5" rx="0" fill="none" stroke="url(#grad1)" width="266" height="50"></rect>
  </svg>
    <span>Hover me</span>
</a>
</div>
</div>
<!-- END BUTTON 2 -->



<!-- BEGIN BUTTON 3 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-underline-contain {
  max-width: 270px;
  margin: 0 auto;
}
.btn-underline {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  margin: 10px;
  padding: 20px;
  border: 2px solid white;
  transition: .3s;
  display:block;
  position:relative;
}
.btn-underline:after {
  position: absolute;
  transition: .3s;
  content: '';
  width: 0;
  bottom: 0;
  height: 3px;
  background: white;
  left: 0;
}
.btn-underline:hover:after {
  width: 100%;
  left: 0;
  background: #ff7d52;
}
.btn-underline:hover {
	border: 2px solid #ffac91;
  -moz-border-image: -moz-linear-gradient(top , #ffac91 0%, #ff7d52 100%);
  -webkit-border-image: -webkit-linear-gradient(top, #ffac91 0%, #ff7d52 100%);
  border-image: linear-gradient(to bottom, #ffac91 0%, #ff7d52 100%);
  border-image-slice: 1;
}
.btn-underline span {
	font-weight: bold;
}
.btn-underline:hover span {
  color: #ff7d52;
}
</style>
<div class="btn-contain">
	<div class="btn-underline-contain">
		<a href="http://mediamilitia.com" class="btn-underline">
			<span>Hover me</span>
		</a>
	</div>
</div>
<!-- END BUTTON 3 -->



<!-- BEGIN BUTTON 4 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-outline-contain {
  text-align: center;
  max-width: 270px;
  margin: 0 auto;
}
.btn-outline {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 235, 59, 0.5);
  color: rgba(255, 235, 59, 0.5);
  text-decoration: none;
  padding: 20px;
  display: block;
    -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}
.btn-outline:hover .btn-outline-inner {
  font-weight:bold;
  color: #fff59d;
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
} 
.btn-outline:hover .line-1 {animation: outline1 2s infinite ease-in-out;} 
.btn-outline:hover .line-2 {animation: outline2 2s infinite ease-in-out;}    
.btn-outline:hover .line-3 {animation: outline3 2s infinite ease-in-out;}
.btn-outline:hover .line-4 {animation: outline4 2s infinite ease-in-out;} 
.line-1 {
	content: "";
	display: block;
	position: absolute;
	width: 2px;
	background-color: #fff59d;
	left: 0;
	bottom: 0;
}
.line-2 {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  background-color: #fff59d;
  left: 0;
  top: 0;
}
.line-3 {
  content: "";
  display: block;
  position: absolute;
  width: 2px;
  background-color: #fff59d;
  right: 0;
  top: 0;
}
.line-4 {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  background-color: #fff59d;
  right: 0;
  top: 57px;
}
@keyframes outline1 {
  0% {height: 100%; bottom: 0;}
  54% {height: 0; bottom: 100%;}
  55% {height: 0; bottom: 0;}
  100% {height: 100%; bottom: 0;}
}
@keyframes outline2 {
  0% {width: 0;left: 0;}
  50% {width: 100%; left: 0;}
  100% {width: 0; left: 100%;}
}

@keyframes outline3 {
  0% {height: 100%; top: 0;}
  54% {height: 0; top: 100%;}
  55% {height: 0; top: 0;}
  100% {height: 100%; top: 0;}
}

@keyframes outline4 {
  0% { width: 0; right: 0;}
  55% {width: 100%; right: 0;}
  100% {width: 0; right: 100%;}
}
</style>
<div class="btn-contain">
	<div class='btn-outline-contain'>
	  <a class='btn-outline' href='http://mediamilitia.com'>
	    <span class="btn-outline-inner">Hover Me</span>
	    <span class='line-1'></span>
	    <span class='line-2'></span>
	    <span class='line-3'></span>
	    <span class='line-4'></span>
	  </a>
	</div>
</div>
<!-- END BUTTON 4 -->

<!-- BEGIN BUTTON 5 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-bounce-contain {
	max-width: 270px;
	margin: 0 auto;
}
.btn-bounce {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  background: linear-gradient(#1494c5, #0b3b5d);
  padding: 20px;
  display: block;
  border-radius: 50px;
  text-shadow: 0px 0px 3px #2a79ca;
  color: #153e69;
  font-weight: 800;
  text-align: center;
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}
.btn-bounce:hover {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
</style>
<div class="btn-contain">
	<div class="btn-bounce-contain">
		<a class="btn-bounce" href="http://mediamilitia.com">
			<span>Hover Me</span>
		</a>
	</div>
</div>
<!-- END BUTTON 5 -->



<!-- BEGIN BUTTON 6 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-shiny-contain {
  max-width: 270px;
  margin: 0 auto;
}
.btn-shiny {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  border: none;
  padding: 20px;
  display: block;
  margin: 50px auto;
  background: #928621;
  position: relative;
  border: 2px solid #887c19;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  overflow: hidden;
  color: #635a0e;
}
.btn-shiny .shiny-line {
  background-color: #fff3b2;
  width: 100%;
  height: 20px;
  position: absolute;
  left: -185px; /* May need to change this depending on length of button */
  transform: rotateZ(45deg);
  -webkit-transform: rotateZ(45deg);
  -moz-transform: rotateZ(45deg);
  -o-transform: rotateZ(45deg);
  -ms-transform: rotateZ(45deg);
}
.btn-shiny:hover {
  background: #e8c600;
  border: 2px solid #887c19;
  color: #a28a00;
}
.btn-shiny:hover .shiny-line {
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  left: 185px; /* May need to change this depending on length of button */
}
</style>
<div class="btn-contain">
  <div class="btn-shiny-contain">
    <a href="http://mediamilitia.com" class='btn-shiny'>
      <div class='shiny-line'></div>
        <span>Hover Me</span>
    </a>
  </div>
</div>
<!-- END BUTTON 6 -->



<!-- BEGIN BUTTON 7 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-skew-contain {
  max-width: 270px;
  margin: 0 auto;
}
.btn-skew {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  margin: 10px;
  padding: 20px;
  border: 2px solid #f7f7f7;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  -webkit-transition: .3s;
  transition: .3s;
  display:block;
}
.btn-skew:after {
  position: absolute;
  -webkit-transition: .3s;
  transition: .3s;
  content: '';
  width: 0;
  bottom: 0;
  background: #f7f7f7;
  height: 120%;
  left: -10%;
  -webkit-transform: skewX(15deg);
  transform: skewX(15deg);
  z-index: -1;
}
.btn-skew:hover {
  cursor: pointer;
}
.btn-skew:hover:after {
  width: 100%;
  left: 0;
}
.btn-skew:hover {
  color: black;
}
.btn-skew:hover:after {
  left: -10%;
  width: 120%;
}
</style>
<div class="btn-contain">
  <div class="btn-skew-contain">
    <a href="http://mediamilitia.com" class="btn-skew">
      <span>Hover Me</span>
    </a>
  </div>
</div>
<!-- END BUTTON 7 -->



<!-- BEGIN BUTTON 8 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-push-contain {
  max-width: 270px;
  margin: 0 auto;
}
.btn-push {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.1s;
  -webkit-transition: all 0.1s;
  padding: 20px;
  display:block;
  border-radius: 10px;
  text-decoration: none;  
  background: linear-gradient(#5bcfac,#36947a);
  border-bottom: 5px solid #225f4c;
  text-shadow: 0px -1px rgba(0,0,0,0.3);
}
.btn-push:hover {
  transform: translate(0px,5px);
  -webkit-transform: translate(0px,5px);
  border-bottom: 1px solid #42a98a;
}
</style>
<div class="btn-contain">
  <div class="btn-push-contain">
    <a href="http://mediamilitia.com" class="btn-push">
      <span>Hover Me</span>
    </a>
  </div>
</div>
<!-- END BUTTON 8 -->



<!-- BEGIN BUTTON 9 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-center-contain {
  max-width: 270px;
  margin: 0 auto;
}
.btn-center {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  display: block;
  padding: 14px 15px;
  overflow: hidden;
  border-radius: 0;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.2);
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
  border: 2px solid #ff8858;
}
.btn-center:after {
  content: "";
  position: absolute;
  height: 0%;
  left: 50%;
  top: 50%;
  width: 150%;
  z-index: -1;
  -webkit-transition: all 0.75s ease 0s;
  -moz-transition: all 0.75s ease 0s;
  -o-transition: all 0.75s ease 0s;
  transition: all 0.75s ease 0s;
  background: #ff8858;
  opacity: .5;
  -moz-transform: translateY(-50%) translateX(-50%) rotate(90deg);
  -ms-transform: translateY(-50%) translateX(-50%) rotate(90deg);
  -webkit-transform: translateY(-50%) translateX(-50%) rotate(90deg);
  transform: translateY(-50%) translateX(-50%) rotate(90deg);
}
.btn-center:hover {
  color: #FFF;
  text-shadow: none;
}
.btn-center:hover:after {
  opacity: 1;
  height: 600% !important;
}
</style>
<div class="btn-contain">
  <div class="btn-center-contain">
    <a href="http://mediamilitia.com" class="btn-center">
      <span>Hover Me</span>
    </a>
  </div>
</div>
<!-- END BUTTON 9 -->



<!-- BEGIN BUTTON 10 -->
<style>
.btn-contain {
  margin: 5% auto;
  min-height: 100px;
}
.btn-raise-contain {
  max-width: 270px;
  margin: 0 auto;
}
.btn-raise {
  font-family:sans-serif;
  font-weight:bold;
  text-align: center;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  background: #71b7ff;
  line-height: 1;
  border-radius:5px;
  text-shadow: 0px -1px rgba(0,0,0,0.3);
  padding: 20px;
  transition: all 0.25s;
  display:block;
}
.btn-raise:hover,
.btn-raise:focus {
  box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
  transform: translateY(-0.5em);
  background:#ffbc00;
}
</style>
<div class="btn-contain">
  <div class="btn-raise-contain">
    <a href="http://mediamilitia.com"class="btn-raise">
      <span>Hover Me</span>
    </a>
  </div>
</div>
<!-- END BUTTON 10 -->
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console