A Pen by Gem Barrett on CodePen.
Created
August 10, 2014 14:08
-
-
Save gembarrett/0072e034fe918a5b2e00 to your computer and use it in GitHub Desktop.
A Pen by Gem Barrett.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<div id="progress-area"> | |
<div id="progress-circle"></div> | |
</div> | |
<ul> | |
<li>1</li> | |
<li>2</li> | |
<li>3</li> | |
<li>4</li> | |
<li>5</li> | |
<li>6</li> | |
<li>7</li> | |
<li>8</li> | |
<li>9</li> | |
<li>10</li> | |
</ul> | |
<button>Next</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("button").on("click", function () { | |
$('#progress-area').css('width', '+=60'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul { | |
margin:0; | |
padding:0; | |
font-size:0; | |
} | |
li { | |
list-style:none; | |
display:inline-block; | |
font-size:50px; | |
width:60px; | |
height:60px; | |
position:relative; | |
z-index:1; | |
text-align:center; | |
margin:0; | |
padding:0; | |
} | |
#progress-circle { | |
background-color:cornflowerblue; | |
border-radius:50%; | |
z-index:0; | |
width:60px; | |
height:60px; | |
position:absolute; | |
top:0; | |
right:0; | |
} | |
#progress-area { | |
width:60px; | |
position:relative; | |
transition: all 0.5s ease; | |
} | |
button { | |
margin-top:20px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment