Skip to content

Instantly share code, notes, and snippets.

@gembarrett
Created August 10, 2014 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gembarrett/0072e034fe918a5b2e00 to your computer and use it in GitHub Desktop.
Save gembarrett/0072e034fe918a5b2e00 to your computer and use it in GitHub Desktop.
A Pen by Gem Barrett.
<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>
$("button").on("click", function () {
$('#progress-area').css('width', '+=60');
});
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