Advertisement

Tuesday, May 6, 2014

Membuat gallery gambar efek Pop Up image dengan CSS

ads

Membuat gallery gambar efek Pop Up image dengan CSS – Sebelum nya saya pernah memposting Membuat image efek Accordion CSS3 di Blog hari ini saya akan membahas tentang Membuat gallery gambar efek Pop Up image dengan CSS
Agar lebih jelasnya, berikut adalah tutorial tentang cara Membuat gallery gambar efek Pop Up image dengan CSS kedalam posting blog:

Simak langkah2 dibawah ini:

1. Login ke akun blogger sobat
2. Klik Template » Edit HTML
3. Kemudian tekan Ctrl+F cari kode ]]></b:skin> atau </style>
4. Lalu tambahkan script CSS berikut ini tepat diatas kode ]]></b:skin> atau </style>
.gallerycontainer{
position: relative;
}
.thumbnail img{
border: 1px solid white;
margin: 0 5px 5px 0;
}
.thumbnail:hover{
background-color: transparent;
}
.thumbnail:hover img{
border: 1px solid blue;
}
.thumbnail span{
position: absolute;
background-color: lightyellow;<
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{
visibility: visible;
top: 0;
left: 230px;
z-index: 50;
}
5. Simpan Template.

Penerapannya:

Supaya kode di atas muncul di posting blog sobat » Silahkan buat Entri baru gunakan mode HTML kemudian masukan kode berikut ini kedalam halaman posting blog sobat.
<div class="gallerycontainer">

<a class="thumbnail" href="http://irvan-efendy.blogspot.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiiubScEV_SwaDh8hkrik4ZRlZ37O3YurFb2YbhzF-xovYsoG6RqwWRxxfpDF2GK0Ojzod9uylxe7SMGw_2GC25oyPS6aFRzZManw8VRt02tjjjTR5MuyIBsNdDjzKSCRMZFNs3YOKJVaD/s1600/BIE_Demo-1.jpg" width="100px" height="66px" /><span><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiiubScEV_SwaDh8hkrik4ZRlZ37O3YurFb2YbhzF-xovYsoG6RqwWRxxfpDF2GK0Ojzod9uylxe7SMGw_2GC25oyPS6aFRzZManw8VRt02tjjjTR5MuyIBsNdDjzKSCRMZFNs3YOKJVaD/s1600/BIE_Demo-1.jpg" width="500px" height="300px"/><br />Silahkan isi dengan teks deskripsi sesuka anda</span></a>
<a class="thumbnail" href="http://irvan-efendy.blogspot.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPnEogr10walXZ7bO7Z2c6aXriR5XKwRzeyJ0_jKQg-fjS9QQjRHfUY5Uacfy7RRiqsUY9yC1xTbAahPCP98k7_ewlTdd0x2dh9tTlcN0ciJVT1Plh3ZVfeWxqdRB7mFxO-jOfj8HMTPoV/s1600/BIE_Demo-2.jpg" width="100px" height="66px" /><span><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPnEogr10walXZ7bO7Z2c6aXriR5XKwRzeyJ0_jKQg-fjS9QQjRHfUY5Uacfy7RRiqsUY9yC1xTbAahPCP98k7_ewlTdd0x2dh9tTlcN0ciJVT1Plh3ZVfeWxqdRB7mFxO-jOfj8HMTPoV/s1600/BIE_Demo-2.jpg" width="500px" height="300px"/><br />Silahkan isi dengan teks deskripsi sesuka anda</span></a>
<br />
<a class="thumbnail" href="http://irvan-efendy.blogspot.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMTXwn1xLhh7zZ3SGgRUEJDoutD2bNQzcaG3n1HHlp3IewxLaJcNDrIgKISN9RiakbxzpAu_pOrPc11Q45ziSjRgLANgSOYZD3dZk0L3lU6vBX4zD359He2LRM3P7SKKPx5GZwYLSd_yFB/s1600/BIE_Demo-3.jpg" width="100px" height="66px" /><span><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMTXwn1xLhh7zZ3SGgRUEJDoutD2bNQzcaG3n1HHlp3IewxLaJcNDrIgKISN9RiakbxzpAu_pOrPc11Q45ziSjRgLANgSOYZD3dZk0L3lU6vBX4zD359He2LRM3P7SKKPx5GZwYLSd_yFB/s1600/BIE_Demo-3.jpg" width="500px" height="300px"/><br />Silahkan isi dengan teks deskripsi sesuka anda</span></a>
<a class="thumbnail" href="http://irvan-efendy.blogspot.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4uHVJJKLqQT7TIH9JF4d_Ih0AtatyxrjigF4IAovmMY90ks0zY5sO0_gnq6eso1HlUym4j6puWT0NquARsmef0cBlUAHmxiYHTslJFLEJsg9sxj47VQJFLx9cUqyL2XFdy60vFuW6lqxT/s1600/BIE_Demo-4.jpg" width="100px" height="66px" /><span><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4uHVJJKLqQT7TIH9JF4d_Ih0AtatyxrjigF4IAovmMY90ks0zY5sO0_gnq6eso1HlUym4j6puWT0NquARsmef0cBlUAHmxiYHTslJFLEJsg9sxj47VQJFLx9cUqyL2XFdy60vFuW6lqxT/s1600/BIE_Demo-4.jpg" width="500px" height="300px"/><br />Silahkan isi dengan teks deskripsi sesuka anda</span></a>
<br />

<a class="thumbnail" href="http://irvan-efendy.blogspot.com/">Blog Irvan Efendy<span><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUv3jrPm57XB4j2LuqrWXKZeuAqpCNfvaDkqv9TyvPCuXUy3xOgcfo5hOg4asO0mq26hAMzOXhMfnz5KDMrZIPbdmQToZy5mralR4PwdMjTVH57ilxw3oMJUX1EJfN_B8kwxPgqAELJQ4v/s1600/BlogIrvanEfendy.PNG" width="500px" height="300px"/><br />Blog Irvan Efendy</span></a>
</div>
Keterangan:
Ganti "http://irvan-efendy.blogspot.com"dengan link tujuan yang di inginkan.
Ganti URL gambar dengan gambar lain yang di inginkan.


DEMO nya seperti ini:

Membuat gallery gambar efek Pop Up image dengan CSS Rating: 4.5 Diposkan Oleh: Unknown

Advertisement

 

Top