Skip to content

Instantly share code, notes, and snippets.

@james-see
Last active August 29, 2015 14:16
Show Gist options
  • Save james-see/cff52e30ea895672b2a2 to your computer and use it in GitHub Desktop.
Save james-see/cff52e30ea895672b2a2 to your computer and use it in GitHub Desktop.
back to main button

back to main button

CSS only with hover transform effects for the button resize with curved corners. This is the same button that is working on my site. Check it out on any article at https://jamescampbell.us

View the live working version on codepen as well, here is the Pen by James Campbell on CodePen.

License.

<div class='backwardo'><a href='http://www.jamescampbell.us#latest'>&larr; back to main <i class="fa fa-dot-circle-o"></i></a></div>
body {
background-color:black;
}
.backwardo {
position: relative;
margin-left: 0;
margin-right: 0;
margin: auto;
text-align: center;
top: 20px;
}
.backwardo a {
border: 6px solid rgba(255,255,255,0.40);
padding: 6px 10px;
font-family: Arial, sans-serif;
font-weight:100;
font-size: 1em;
color: rgba(255,255,255,0.48);
border-radius: 16px;
background-color: transparent;
letter-spacing: .07em;
transition: 0.4s linear;
text-decoration: none;
}
.backwardo a:hover {
border: 2px solid rgba(255,255,255,0.8);
color: #fff;
background-color:transparent;
transition: 0.4s linear;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment