Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create a CSS Image Slider with Thumbnails for Blogger
- paste kode berikut di atas kode </head>
- pilih stile;//
- <style type='text/css'>
- .image-container {
- position: relative;
- width: 640px;
- height: 530px;
- margin: 0 auto;
- text-align:center;
- overflow: hidden;
- }
- .image-container a {
- display: inline;
- text-decoration: none;
- }
- /* Mini-thumbnails style */
- .mini-thumbnail {
- width: 18%; /* mini-thumbnails width */
- margin:1px;
- opacity: 1;
- -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.5);
- -moz-box-shadow: 0px 0px 3px rgba(0,0,0,0.5);
- box-shadow: 0px 0px 3px rgba(0,0,0,0.5);
- }
- /* Style for the main thumbnail */
- .large-thumbnail {
- position: absolute;
- width: 100%;
- top: 800px;
- margin:0 auto;
- text-align: center;
- display: block;
- -webkit-transition: top 1s ease;
- -moz-transition: top 1s ease;
- -o-transition: top 1s ease;
- -ms-transition: top 1s ease;
- transition: top 1s ease;
- }
- .feature {
- top: 110px;
- width: 100%;
- opacity: .3;
- }
- /* style for the selected mini-thumbnail */
- a:hover .mini-thumbnail {
- opacity: .5;
- -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
- -moz-box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
- box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
- }
- /* transition effects for the selected image */
- a:hover .large-thumbnail {
- top: 110px;
- width: 100%;
- z-index:3;
- opacity: 1;
- -webkit-transition: top 1s ease;
- -moz-transition: top 1s ease;
- -o-transition: top 1s ease;
- -ms-transition: top 1s ease;
- transition: top 1s ease;
- }
- </style>
- save template
- go to html:
- paste kode
- <div class="image-container">
- <a href="javascript:void(0);">
- <img class="mini-thumbnail" src="MINI-THUMB-URL1" />
- <img class="large-thumbnail" src="LARGE-THUMB-URL1" />
- </a>
- <a href="javascript:void(0);">
- <img class="mini-thumbnail" src="MINI-THUMB-URL2" />
- <img class="large-thumbnail" src="LARGE-THUMB-URL2" />
- </a>
- <a href="javascript:void(0);">
- <img class="mini-thumbnail" src="MINI-THUMB-URL3" />
- <img class="large-thumbnail" src="LARGE-THUMB-URL3" />
- </a>
- <a href="javascript:void(0);">
- <img class="mini-thumbnail" src="MINI-THUMB-URL4" />
- <img class="large-thumbnail" src="LARGE-THUMB-URL4" />
- </a>
- <a href="javascript:void(0);">
- <img class="mini-thumbnail" src="MINI-THUMB-URL5" />
- <img class="large-thumbnail" src="LARGE-THUMB-URL5" />
- </a>
- <a href="javascript:void(0);">
- <img class="large-thumbnail feature" src="LARGE-THUMB-URL1" />
- </a>
- </div>
- from: http://helplogger.blogspot.com/2014/01/create-css-image-slider-with-thumbnails.html
Advertisement
Add Comment
Please, Sign In to add comment