Back To Top

by secretgspot

HTML

<a class="backToTop" href="#"></a>

CSS

body {
    font-size: 125%;
}
a.backToTop {
    background: -webkit-linear-gradient(60deg, transparent 35%, #f66 35%, #f66 65%, transparent 65%),
                -webkit-linear-gradient(-60deg, transparent 35%, #f66 35%, #f66 65%, transparent 65%);
    background-position: 100% 0, 0 0;
    background-repeat: repeat-y;
    background-size: 1.8em 1.8em;
    display: block;
    height: 5.4em;
    margin: 100px;
    width: 3.6em;
}
a.backToTop:hover {
    -webkit-animation: backToTop 1s infinite linear;
}
@-webkit-keyframes backToTop {
    100% { background-position: 100% -100%, 0 -100%; }
}