cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <div class="btn-container">
  <a class="elegant" href="#">
    An Elegant Button
  </a>
</div>

<div class="btn-container">
  <a class="gymnastics" href="#">
    Do a Handstand
  </a>
</div>

<div class="btn-container">
  <a class="clown" href="#">
    Learn About Clowns!
  </a>
</div>

<div class="btn-container">
  <a class="space" href="#">
    Go to Space Camp
  </a>
</div>
            
          
!
            
              @import "bourbon";

.btn-container {
  text-align: center;
  margin: 3em auto;
}

.elegant {
  display: inline-block;
  margin: 4em auto;
  padding: 10px 20px;
  border: 1px solid #CC9900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  margin: 30px auto;
  color: #333333;
  font: 14px "helvetica", sans-serif;
  background: #fafafa;
  &:before {
		content: '';
		display: block;
		position: absolute;
		top: -18px;
		left: 52%;
		width: 30px;
		height: 10px;
		border-top: 1px solid #CC9900;
		@include transform(rotate(-65deg));
		@include transition (all 0.7s ease);
	}
	&:after {
		content: '';
		display: block;
		position: absolute;
		bottom: -22px;
		left: 38%;
		width: 30px;
		height: 10px;
		border-top: 1px solid #CC9900;
		@include transform(rotate(-65deg));
		@include transition (all 0.7s ease);
	}
	&:hover,
  &:focus,
	&:active {
	  &:before {
			@include transform(rotate(-130deg));
			top: -21px;
			left: 35%;
		}
		&:after {
			@include transform(rotate(-130deg));
			left: 60%;
			bottom: -15px;
		}
	}
}

.gymnastics {
  display: inline-block;
  margin: 4em auto;
  padding: 10px 20px;
  border: 3px solid #CC297A;
  text-decoration: none;
  position: relative;
  margin: 30px auto;
  color: #333333;
  font: 18px "georgia", serif;
  font-style: italic;
  &:before {
		content: '';
		display: block;
		position: absolute;
		top: -18px;
		left: 52%;
		width: 30px;
		height: 10px;
		border-top: 3px solid #CC297A;
		@include transform(rotate(-65deg));
		@include transition (all 0.5s ease-out);
	}
	&:after {
		content: '';
		display: block;
		position: absolute;
		bottom: -23px;
		left: 38%;
		width: 30px;
		height: 10px;
		border-top: 3px solid #CC297A;
		@include transform(rotate(-65deg));
		@include transition (all 0.5s ease-out);
	}
	&:hover,
  &:focus,
	&:active {
	  &:before {
			@include transform(rotate(90deg));
			top: -24px;
			left: 40%;
		}
		&:after {
			@include transform(rotate(90deg));
			left: 40%;
			bottom: -22px;
		}
	}
}

.clown {
  display: inline-block;
  margin: 4em auto;
  padding: 10px 20px;
  border-top: 3px dashed red;
  border-bottom: 3px dashed blue;
  border-right: 3px dashed yellow;
  border-left: 3px dashed green;
  text-decoration: none;
  position: relative;
  margin: 30px auto;
  color: #333333;
  font: 18px "Comic Sans MS", cursive, sans-serif;
  @include transition (all 0.5s bounce);
  &:before {
		content: '';
		display: block;
		position: absolute;
		top: -18px;
		left: 52%;
		width: 30px;
		height: 10px;
		border-top: 3px dashed red;
		@include transform(rotate(-65deg));
		@include transition (all 0.5s ease-out);
	}
	&:after {
		content: '';
		display: block;
		position: absolute;
		bottom: -23px;
		left: 38%;
		width: 30px;
		height: 10px;
		border-top: 3px dashed blue;
		@include transform(rotate(-65deg));
		@include transition (all 0.5s ease-out);
	}
	&:hover,
  &:focus,
	&:active {
    border-top: 3px dotted blue;
    border-bottom: 3px dotted green;
    border-right: 3px dotted red;
    border-left: 3px dotted yellow;
	  &:before {
			@include transform(rotate(1080deg));
			top: 0px;
			left: 0;
        border-top: 3px dotted blue;
        width: 100%
		}
		&:after {
			@include transform(rotate(1080deg));
			left: 0;
			bottom: -11px;
        border-top: 3px dotted green;
        width: 100%
		}
	}
}

.space {
  display: inline-block;
  margin: 4em auto;
  padding: 10px 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  margin: 30px auto;
  color: #ffffff;
  font: 14px "helvetica", sans-serif;
  background: #002952;
  @include transition (all 2s ease);
  &:before {
		content: '';
		display: block;
		position: absolute;
		top: -23px;
		left: 40%;
		width: 30px;
		height: 10px;
		border-top: 5px solid red;
		@include transform(rotate(90deg));
		@include transition (all 2.7s ease);
	}
	&:after {
		content: '';
		display: block;
		position: absolute;
		bottom: -22px;
		left: 40%;
		width: 30px;
		height: 10px;
		border-top: 5px solid red;
     @include transform(rotate(90deg));
		@include transition (all 1.7s ease-in);
	}
	&:hover,
  &:focus,
	&:active {
    margin: 10px auto;
    @include transform(rotate(5deg));
    @include transform(skew(10deg));
	  &:before {
			@include transform(rotate(-130deg));
			top: -999px;
			left: 35%;
		}
		&:after {
			@include transform(rotate(930deg));
			left: 60%;
			bottom: 999px;
		}
	}
}
            
          
!
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