Efek chop slider - sebelum nya saya udah pernah membahas mengenai chop slider
disini (dengan tampilan yang sederhana) namun untuk yang posting kali ini udah saya Update dan Tampilan nya juga sedikit menarik dari yang sebelum nya,..
Demo nya kurang lebih seperti gambar dibawah ini :
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>
@charset "utf-8";
p { margin:10px 0; }
h1, h2, h3, h4, h5, h6 { margin:0 0 10px; }
h5 { text-transform:uppercase; }
img { border:none; }
a {
text-decoration:underline;
color:#3c0d0d;
outline:none;
}
h2 {
margin:15px 0;
}
ul li {
margin:5px 0;
}
.wrapper {
position:relative;
margin-left:auto;
margin-right:auto;
width:960px;
height:300px;
display:block;
padding-top:150px;
padding-bottom:120px;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVaONAOWXgoalc3_CfZ3dH0Il_Ma02HklMzJX8oSp_w9TkiRR9JeJp2pk8Fh_HaSBlo7H2IpXB3kjX-uzKza0pyHmJiS1taoML38V6AEyvaX7ND0XiixZZNeoh_euMLhXvHB0r-8apu8KB/s1600/podium.png) no-repeat bottom;
z-index:2;
}
.wrapper2 {
position:relative;
margin-left:auto;
margin-right:auto;
margin-top:20px;
width:960px;
height:300px;
display:block;
z-index:2;
text-align:center;
padding-bottom:50px;
}
.wrapper2 a {
display:inline-block;
padding:0px 5px;
background:#fff;
border:1px solid #ccc;
border-radius:3px;
text-decoration:none;
margin:0px 5px;
}
.wrapper2 .active-transition {
background:#222;
color:#fff;
}
/*---------- Slider ----------- */
/*---------- Left and Right Triggers ----------- */
#slide-prev {
position:absolute;
width:21px;
height:33px;
bottom:39px;
left:26px;
z-index:4;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjzLZ4Z1Bn5Y7hvlyIf5J69Xr8FaQovT7CGh5WWGjrDqEAITJ_x60blOtwtFzElAkL4LqghspJEIfs_n_lMf42f2OSUFeUGsYWHcB6G8b2RA1K6zBNju73scRA8PCE0iShOWyqe0U8Cf5M/s1600/sl-control.png) left top no-repeat;
}
#slide-next {
position:absolute;
width:21px;
height:33px;
bottom:39px;
right:26px;
z-index:4;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjzLZ4Z1Bn5Y7hvlyIf5J69Xr8FaQovT7CGh5WWGjrDqEAITJ_x60blOtwtFzElAkL4LqghspJEIfs_n_lMf42f2OSUFeUGsYWHcB6G8b2RA1K6zBNju73scRA8PCE0iShOWyqe0U8Cf5M/s1600/sl-control.png) left bottom no-repeat;
}
/*---------- Shadow, just for styling ----------- */
.s-shadow-b{
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOe4Yt3wLs5-55gjy6cDLPI70mvATyzA5iCuq5x033GijocKXVGTunWI2jgoL1tq2bULIpQGzC4gBPEd0TACHkBYhuPSSVtXvbKWnv_wZh8NCdI4wGlSSMfQwz70AhqOJeO8CK8Eg1jYCb/s1600/shadow.png) no-repeat top;
width:876px;
height:55px;
position:absolute;
left:42px;
bottom:60px;
z-index:1;
}
/*---------- Main Slider Container----------- */
#slider {
width:900px;
height:300px;
margin-left:auto;
margin-right:auto;
position:relative;
z-index:2;
display:block;
}
/* Every slide must be hidden by default */
.slide { display:none; }
/*
And only the slide with "cs-activeSlide" class must be visible!
!Reserved Class name. Required class!
*/
.cs-activeSlide { display:block; }
/* Container with caption's text. Must be hidden */
.slide-descriptions {
display:none;
}
/* Container with caption, must be hidden by default */
.caption {
background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBgR90cSGvHSxOYkMn6YLjqUj-RGDYc6NZv09OVRc-5Ishpwdf3rravA93TdxntfeAMPe-CeDPvWqyoCh8YnKcb2wSs_VdmSZmNeQX_VU0jTPiapIF5RcnmJ6WYxXQXG8JiYmysaVC391F/s1600/deskripsi-bg.png") repeat scroll 0 0 transparent;
color: #FFFFFF;
display: none;
height: 260px;
padding: 20px;
position: absolute;
right: 30px;
top: 150px;
width: 180px;
z-index: 3;
}
.full-3D {
right: 40px;
top: 580px;
width: 840px;
height:20px;
}
/* Container with Pagination buttons */
.pagination {
bottom: 50px;
left: 345px;
margin-top: 50px;
position: absolute;
text-align: center;
}
.slider-pagination {
display:inline-block;
width:15px;
height:10px;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgztjHLVuikYmYxktCEI7Dmhe6gbh3wOw4zGf2-lUKah7fM3VupBar1sS1jnd_yCuJ4CvJ2XBosni8oa9FgxEeacnXArK8YGUvhNyR2NFCdUmeX-m6wVWlubotgLIt396motvEW1or4HGP-/s1600/navi.png) no-repeat left bottom;
margin:0 10px;
cursor:pointer;
position:relative;
z-index:200;
}
/* This is a required class for the "Active" pagination button. ! Reserved Class Name ! */
.cs-active-pagination {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgztjHLVuikYmYxktCEI7Dmhe6gbh3wOw4zGf2-lUKah7fM3VupBar1sS1jnd_yCuJ4CvJ2XBosni8oa9FgxEeacnXArK8YGUvhNyR2NFCdUmeX-m6wVWlubotgLIt396motvEW1or4HGP-/s1600/navi.png) no-repeat left top;
}
/* Multiple SLiders */
.slider-2 {
padding-top:0;
margin-top:20px;
}
#slider-1, #slider-2 {
width:900px;
height:300px;
margin-left:auto;
margin-right:auto;
position:relative;
z-index:2;
display:block;
}
.cs-activeSlide-2 {
display:block
}
.cs-active-pagination-2 {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgztjHLVuikYmYxktCEI7Dmhe6gbh3wOw4zGf2-lUKah7fM3VupBar1sS1jnd_yCuJ4CvJ2XBosni8oa9FgxEeacnXArK8YGUvhNyR2NFCdUmeX-m6wVWlubotgLIt396motvEW1or4HGP-/s1600/navi.png) no-repeat left top;
}
5. Tekan
Ctrl+
F cari kode
</head>
Lalu masukan script di bawah ini tepat di atas kode
</head>
<script src="http://yourjavascript.com/3222016443/jquery-latest-min.js"></script>
<script src="http://sites.google.com/site/vanzdy/script/jquery-chopslider-2.2.0.js"></script>
<script src="http://sites.google.com/site/vanzdy/script/jquery-cstransitions-1.2.js"></script>
<script>
jQuery(function(){
$("#slider").chopSlider({
/* slide element */
slide : ".slide",
/* controlers */
nextTrigger : "a#slide-next",
prevTrigger : "a#slide-prev",
hideTriggers : true,
sliderPagination : ".slider-pagination",
/* captions */
useCaptions : true,
everyCaptionIn : ".sl-descr",
showCaptionIn : ".caption",
captionTransform : "scale(0) translate(-600px,0px) rotate(45deg)",
/* autoplay */
autoplay : true,
autoplayDelay : 5000,
/* for Browsers that support 3D transforms */
t3D : csTransitions['3DFlips']['random'], /* all will be picked up randomly */
t2D : [ csTransitions['multi']['random'], csTransitions['vertical']['random'] ],
noCSS3 : csTransitions['noCSS3']['random'],
mobile : csTransitions['mobile']['random'],
onStart: function(){},
onEnd: function(){}
})
})</script>
Penerapannya:
Masukan kode
HTML
di bawah ini ke dalam postingan blog sobat atau bisa juga di dalam gadget
HTML/Javascript
<div class="wrapper">
<div class="s-shadow-b"></div>
<a id="slide-next" href="#"></a>
<a id="slide-prev" href="#"></a>
<div id="slider">
<div class="slide cs-activeSlide"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3XwS9jbKLn6HWp49zJDZaItZqfEpT242WURpd-CeOxbre_eAa8fzBf0B6B-P-T6YsoJl_wMprVFYJ71m9YYnQ2vtY_7a64Zx8Bjk_5jowlmNI3oYTlBpW34WgDkX8orY59NF2zyMA_xOb/s1600/BIE_demo1.jpg" width="900" height="300" alt="photo #1" /> </div>
<div class="slide"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj38Q28MYhfnUXwMIRkEU10ha3qDQiKjIVqcFH4M7flV6xWOC9Ia-QFKzPPgXw7ETkEdaXXeqKdzxCH1tbHnyMnBw9frfwo2HSv0DQ-a-F8Nd206ooFjZdnsDj671OpoA2vCi-54mAGxhAp/s1600/BIE_demo2.jpg" width="900" height="300" alt="photo #2" /> </div>
<div class="slide"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5ezSBPeo_4ABBTe-7xOarOQJghnscknZO8YgMyjvCOwNfk7JnBAwHOMtgEXKIPefMAj-eXBEWLMfXYfV2NJzHwxCoYpyObbE6JdSoG0DQl363xsKiZ5yYNkQQSi_fwm8syhD40v6Ny8xi/s1600/BIE_demo3.jpg" width="900" height="300" alt="photo #3" /> </div>
<div class="slide"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJw21WGNFpBYvkEnH9gf3w_-_inBB2HTczCmJ6t5YrCAvVzcPDyTh5sZUHIx7-_GCR_a9LDZxvABpcom8b70toJ27eLKoqaaCPmysmdtwcJagma_aLWs4NcT4NuVk4jF2QD4NZb4Ie-E6L/s1600/BIE_demo4.jpg" width="900" height="300" alt="photo #4" /> </div>
<div class="slide"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGpMPl07OKmze5B23nIIbV8aHLhMjtlPNLyGMlmgr3TfyI2XHtYEAol4VGfuNPzJIcVCFxTdQpwSyuJMWC4a9k8Y8Ge-Iib5G5wSXofAZ8iY4h9K0BoMCw6RJ7CZDbJkPfEYRZQvDM76bc/s1600/BIE_demo5.jpg" width="900" height="300" alt="photo #5" /> </div>
<div class="slide"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ892mZvo_U_0rT9KZ-vvztel-9zaXtAGy9a9jGBjirWsYyEnhUus3M2VUSAx3h6WguqYZqQYOGbkdL4m1YIQQjnYByRKwxai_KrxYwCGZwRrWFVS6B3Yo3VDVIIxIf2ZETEh4E9JRq7VQ/s1600/BIE_demo6.jpg" width="900" height="300" alt="photo #6" /> </div>
<div class="slide"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAc8UkeEQ5jiC5BPYdOMQKCfbuhJUbf9pCkNMEtzyLc_P1TK4qqDAJXRVSBRsH84T9Sxy8NR4id1RO-xqYmgbFfzdQOp6mZ2LYJK7YXO_ghMzRPZ500x5UrszpSYqnsaJniNRzepBtU5Te/s1600/BIE_demo7.jpg" width="900" height="300" alt="photo #7" /> </div>
</div>
<div class="pagination">
<span class="slider-pagination"></span>
<span class="slider-pagination"></span>
<span class="slider-pagination"></span>
<span class="slider-pagination"></span>
<span class="slider-pagination"></span>
<span class="slider-pagination"></span>
<span class="slider-pagination"></span>
</div>
<div class="slide-descriptions">
<div class="sl-descr">Disini deskripsi gambar anda.</div>
<div class="sl-descr">Disini deskripsi gambar anda.</div>
<div class="sl-descr">Disini deskripsi gambar anda.</div>
<div class="sl-descr">Disini deskripsi gambar anda.</div>
<div class="sl-descr">Disini deskripsi gambar anda.</div>
<div class="sl-descr">Disini deskripsi gambar anda.</div>
<div class="sl-descr">Disini deskripsi gambar anda.</div>
</div>
<div class="caption"></div>
</div>
Note: Untuk link gambar nya bisa sobat ubah sesuai dengan URL gambar ke sukaan sobat,..
selamat mencoba dan semoga berhasil,...