Photo Gallery - Muhammad Fauzi Sewaktu Kecil
Bagaimana cara membuatnya?
Kode CSS3 dan HTML untuk membuat gallery di blogspot:
<style media="screen" type="text/css"> #container{width:100%;min-height:100%;background-color:#000;} .heading{font-size:24px;color:#fbf6fd;text-shadow:2px 2px 4px #dedede;text-align:center;padding:20px;} .clearfix{clear:both;float:none;} .img{-webkit-transform:scale(0.6);-moz-transform:scale(0.6);-o-transform:scale(0.6);float:left;margin-left:-50px;margin-right:-50px;margin-top:-10px;-webkit-transition-duration: 0.5s;-moz-transition-duration: 0.5s;-o-transition-duration: 0.5s;} .img img{padding:10px;} .img:hover{-webkit-transform:scale(0.8);-webkit-box-shadow:0px 0px 10px #dedede;-moz-transform:scale(0.8);-moz-box-shadow:0px 0px 10px #dedede; -o-transform:scale(0.8);-o-box-shadow:0px 0px 10px #dedede;box-shadow:0px 0px 10px #dedede;} .img .mask{width:100%;height:100%;background-color:rgba(0,0,0,.6);position:absolute;cursor:pointer;-webkit-transition-duration:0.5s;-moz-transition-duration:0.5s;-o-transition-duration:0.5s;} #img-1:hover .mask{height:0%;} #img-2:hover .mask{height:0%;margin-top:130px;} #img-4:hover .mask{margin-left:219px;margin-top:135px;height:0%;width:0%;} #img-3 #mask-1{width:50%;} #img-3 #mask-2{width:50%;margin-left:211px;} #img-3:hover #mask-1{width:0%;} #img-3:hover #mask-2{margin-left:430px;width:0%;} #img-5:hover .mask{margin-left:219px;margin-top:135px;height:0%;width:0%;-webkit-transform:rotateX(360deg);-moz-transform:rotate(360deg);-o-transform: rotate(-360deg);} #img-6:hover .mask{margin-left:219px;margin-top:135px;height:0%;width:0%;-webkit-transform:rotateZ(750deg);-moz-transform:rotateZ(750deg);-o-transform: rotat(750deg);} </style> <div id="container"> <div class="heading"> Photo Gallery - Muhammad Fauzi Sewaktu Kecil</div> <div id="image-container"> <div class="img" id="img-1"> <div class="mask"> </div> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0AvulcyDLmwQh_aF9wdu3S3NUxlR45K-V3aHrWsRnbSq4-Z4PxchjGslU-K0H4vjdIE6cvScI6RwJCXgfQY9rRucwttuRq6Og8rPrnW4rzTBajy_tKQtrcCjvyL8l7KhFSPzNdwWJmaxV/w400-h250-n-k/2012-07-05+01-10-05_0040.jpg"> </div> <div class="img" id="img-2"> <div class="mask"> </div> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR2oOM3HTI9XLm77M863NNHfAdNjFPAFqCqvOhb13nZcAHvQm9HdcfciLvM63zlQc4TbKDxZRBKWVhsQtXn-4y_tNXOkBqo7cksvn-aeHgjp4ku_J3AwLZV5RqYqHHGU3Iz9q1Rgg17_aX/w400-h250-n-k/Alang+Fauzi+Bertuah.jpg"> </div> <div class="img" id="img-3"> <div class="mask" id="mask-1"> </div> <div class="mask" id="mask-2"> </div> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizMQxLa_8DtVnye-2FLtnrlCdwWZZWZp-ojIyWi0djqcrLxJpvq0rpMkkR3TzTYHbcuFGDphLkrr3CaMf59UoXeXmcINdflTXBLXJece6m5eH_Ek2UySRj8wn9JPtYkLwZXWS0gLi3v4-3/w400-h250-n-k/2012-07-05+00-56-32_0038.jpg"> </div> <div class="img" id="img-4"> <div class="mask"> </div> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWERf3mxylXa4EA7fmfOmI-sjuoswWUZxV_j9qEO76-_HFdRIAb8YopD8lezRqjgpYr1xbkdLcBuodG0wUhxO9m3blp2v84t1degUSCiWo9uBcJTYIixkyvxxG2VNAPlsRZZO7YSVC69Jg/w400-h250-n-k/2012-07-05+01-15-41_0044.jpg"> </div> <div class="img" id="img-5"> <div class="mask"> </div> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlawert_f_UGftgNNPnfmlHaU9qk_0fVwRf7kk6LsublDhQITT7kx7S7zrj9F6MFBjsTJ0HJ4__GEaRkrOdCK0BvZwd_T1DWSR6BEJ11mndWG8dKhiRFGqnzvqJErtaICK7pcT8OXQuyt3/w400-h250-n-k/2012-07-05+01-55-04_0064.jpg"> </div> <div class="img" id="img-6"> <div class="mask"> </div> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCqm7b_7RADHpnkRcduOgjILnbMngA5aRmuxp074Tmwk4J5j8oMeZ7e40QbBijGhwarwNjjPGkhZzhqgeR8sk-snl_-M-dU0qmD5fmpTnmou9G8TadKUf8cVDrsYLoGz8M5dQWYIIsVNU3/w400-h250-n-k/2012-07-05+01-15-00_0043.jpg"> </div> <div class="clearfix"> </div> </div> </div>
gampang kan :)
lebih detail, silahkan kunjungi: http://www.nikesh.me/blog/2010/05/sexy-image-hover-effects-using-css3/
gambar ini berasal dari: http://seanarmy.deviantart.com |
No comments:
Post a Comment