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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <ol type="I">
	<li>
		<div class="effect-one wrap"><a>Underline - Inside out</a></div>
	</li>
	<li>
		<div class="effect-two wrap"><a>Underline - Right to left</a></div>
	</li>
	<li>
		<div class="effect-three wrap"><a>Underline - Bounce down</a></div>
	</li>
	<li>
		<div class="effect-four wrap"><a>Background color - Right to left</a></div>
	</li>
</ol>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700);

$mainColor: #21242C;

body {
	text-align: center;
	font-family: 'Open Sans', sans-serif;
	background: $mainColor;
	color: white;
	backface-visibility: hidden;
}

a {
	cursor: pointer;
	text-decoration: none;
}

.wrap {
	margin: 28px 0;
}

ol {
	display: inline-block;
	li {
		text-align: left;
	}
}

// Animation I Underline - Inside out
.effect-one > a {
	position: relative;
	&:before {
		content: "";
		position: absolute;
		width: 100%;
		height: 2px;
		bottom: 0;
		margin: -5px 0;
		background-color: white;
		visibility: hidden;
		transform: scaleX(0);
		transition: all 0.4s ease-in-out 0s;
	}
	&:hover:before {
		visibility: visible;
		transform: scaleX(1);
	}
}

// Animation II Underline - Right to left
.effect-two > a {
	display: inline-block;
	position: relative;
	&:after {
		content: "";
		display: block;
		position: absolute;
		width: 0;
		bottom: 0;
		height: 2px;
		margin: -5px 0;
		right: 0;
		background-color: white;
		transition: all 0.4s ease-in 0s;
	}
	&:hover:after {
		width: 100%;
	}
}

// Animation III Background color - Right to left
.effect-three > a {
	padding: 0 0 4px 0;
	border-bottom: 2px solid lighten($mainColor, 20%);
	transition: 0.3s ease;
	&:hover{
		padding: 0 0 6px 0;
		border-color: white;
	}
}

// Animation IV Background color - Right to left
.effect-four > a {
	padding: 0 5px;
	box-shadow: inset 0 0 0 0 white;
	transition: all 0.4s ease-in-out 0s;
	&:hover{
		box-shadow: inset -300px 0 0 0 white;
		color: $mainColor;
	}
}


            
          
!
999px
Loading ..................

Console