Simple ajax waiting layout in pure CSS

css:

#waiting {
top: 0;
left: 0;
display: none;
position: fixed;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.5) url(‘../default-loader.gif’) no-repeat center center ;
}

 

html:

<body>

..

</body>

js:

$(‘#waiting’).show();

or

$(‘#waiting’).hide();

Advertisements

rotate image only with css

<style>
    .avatar_rotate {
        transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        -o-transform: rotate(180deg);
    }
</style>