efeito shine (para tumblr)


Não sabe oque é efeito shine?? clique aqui e descubra!!


1) Copie e cole o código abaixo no seu CSS, antes de </style>:


.DemoContainer {
    margin: 0px;
    width: 350px;
    height: 100px;
    color: #ccc;
    font-weight: bold;
    font-family: tahoma;
    text-align: center;
}

.image_shine{
    width:  101px;
    height: 101px;
    margin-right: 5px;
    margin-bottom: 5px;
    position: relative;
    float: left;
    border: 3px solid rgba(255,197,239,0.9);
}

.hover_shine{
    width:101px; height: 101px; 
    background-image: url(http://i.minus.com/iuvzYDPlYu8RR.png);
    position: absolute;
    /*initial position*/
    background-position: -265px 0; 
    left:0px; top:0px; 
    background-repeat:no-repeat;
}

.hover_shine:hover{
    /*Final position*/
    background-position: 10px 0;
    -webkit-transition: background-position .9s ease;
       -moz-transition: background-position .9s ease;
         -o-transition: background-position .9s ease;
            transition: background-position .9s ease;
}


Nenhum comentário:

Postar um comentário