CSS 3 Animation AJAX Loaders

Loading Bar CSS 3 Animation AJAX Loader

This is probably my least favorite of the 5 CSS 3 animation Ajax loaders, but it’s was the inspiration that lead to the Pac-man animation. I think with the right colors it could turn out really nice. I probably have way to many spans in it, but if you wanted to make it longer it’s set up and ready to go.

Here’s the HTML for this example

<div id="loader3">
    <div>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>
</div>

Here’s the CSS for this example

#loader3{
    border: 1px solid #000;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    clear: both;
    height: 10px;
    margin: 100px 0 0 50px;
    position: relative;
    overflow: hidden;
    width: 150px;
}
#loader3 div{
    position: absolute;
    right: 0;
    top: 0;
    width: 300%;
    -webkit-animation: move 1.5s linear infinite;
    -moz-animation: move 1.5s linear infinite;
    -ms-animation: move 1.5s linear infinite;
    -o-animation: move 1.5s linear infinite;
    animation: move 1.5s linear infinite;
}
#loader3 span{
    float: right;
    display: block;
    width: 15px;
    height: 15px;
    -webkit-transform: skewX(-15deg)
}
#loader3 span:nth-child(even){
    background: #000;
}
@-webkit-keyframes move {
    0% {
        -webkit-transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(27%);   
    }
}
@-moz-keyframes move {
    0% {
        -moz-transform: translateX(0);
    }
    100% {
        -moz-transform: translateX(27%);   
    }
}
@-o-keyframes move {
    0% {
        -o-transform: translateX(0);
    }
    100% {
        -o-transform: translateX(27%);   
    }
}
@keyframes move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(27%);   
    }
}

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*
*