Yoooo! Ando meio sem tempo para postar... então decidi fazer algo bem rápido hoje. Minha amiga Lila que monta modelos para tumblr me passou o código para postar aqui, ela não me disse de onde era, mas caçando achei ele no blog KW, então creditos para lá.
Códigos
figure {
display: block;
position: relative;
float: left;
overflow: hidden;
margin: 0 10px 10px 0;
-moz-transition: all 0.6s ease;
}
figcaption {
position: absolute;
margin-bottom: 10px;
background: #68228B;
background-color: #68228B;
color: #FFFFFF;
padding: 3px 15px;
opacity: 0;
-webkit-transition: all 0.8s ease;
-moz-transition: all 0.8s ease;
-o-transition: all 0.8s ease;
}figure:hover figcaption {
opacity: 0.6;
}figure:before {
content: "??";
position: absolute;
font-weight: 800;
background: #B452CD;
background: #B452CD;
text-shadow: 0 0 5px white;
color: #FFF;
width: 24px;
height: 24px;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
text-align: center;
font-size: 14px;
line-height: 24px;
-moz-transition: all 0.6s ease;
opacity: 0.75; }
figure:hover:before {
opacity: 0;
}
.cap-left:before { bottom: 5px; left: 5px; }
.cap-left figcaption { bottom: 0; left: -33%; }
.cap-left:hover figcaption { left: 0; }
display: block;
position: relative;
float: left;
overflow: hidden;
margin: 0 10px 10px 0;
-moz-transition: all 0.6s ease;
}
figcaption {
position: absolute;
margin-bottom: 10px;
background: #68228B;
background-color: #68228B;
color: #FFFFFF;
padding: 3px 15px;
opacity: 0;
-webkit-transition: all 0.8s ease;
-moz-transition: all 0.8s ease;
-o-transition: all 0.8s ease;
}figure:hover figcaption {
opacity: 0.6;
}figure:before {
content: "??";
position: absolute;
font-weight: 800;
background: #B452CD;
background: #B452CD;
text-shadow: 0 0 5px white;
color: #FFF;
width: 24px;
height: 24px;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
text-align: center;
font-size: 14px;
line-height: 24px;
-moz-transition: all 0.6s ease;
opacity: 0.75; }
figure:hover:before {
opacity: 0;
}
.cap-left:before { bottom: 5px; left: 5px; }
.cap-left figcaption { bottom: 0; left: -33%; }
.cap-left:hover figcaption { left: 0; }
Códigos
<figure class="cap-left"> <img src="URL DA IMAGEM" alt="" />
<figcaption>NOME DO POSTADOR</figcaption> </figure>
<figcaption>NOME DO POSTADOR</figcaption> </figure>
Oii quanto é a largura e a altura da imagem?
ResponderExcluir