Skip to content

Instantly share code, notes, and snippets.

@EpokK
Created February 27, 2015 06:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save EpokK/879aeec6a0150188f9f5 to your computer and use it in GitHub Desktop.
Save EpokK/879aeec6a0150188f9f5 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<div class="steps">
<a href="" class="step step1">1</a>
<div class="line line1"></div>
<a href="" class="step step2">2</a>
<div class="line line2"></div>
<a href="" class="step step3">3</a>
</div>
</head>
<body>
</body>
</html>
div.steps {
width: 480px;
text-align: center;
height: 60px;
position: relative;
margin: 80px auto 50px auto;
}
a.step {
display: inline-block;
text-decoration: none;
line-height: 52px;
text-align: center;
width: 60px;
height: 60px;
border: 4px solid #2196F3;
-webkit-border-radius: 100px;
-webkit-background-clip: padding-box;
-moz-border-radius: 100px;
-moz-background-clip: padding;
border-radius: 100px;
background-clip: padding-box;
color: #2196F3;
font-size: 24px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-moz-transition: all 500ms ease-out;
-o-transition: all 500ms ease-out;
-ms-transition: all 500ms ease-out;
-webkit-transition: all 500ms ease-out;
transition: all 500ms ease-out;
position: absolute;
}
a.step:hover {
background-color: #2196F3;
color: white;
}
a.step1 {
left: 0px;
}
a.step2 {
left: 210px;
}
a.step3 {
left: 420px;
}
div.line {
position: absolute;
height: 4px;
background: #2196F3;
width: 150px;
top: 28px;
}
div.line1 {
left: 60px;
}
div.line2 {
left: 270px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment