Woww..mungkin kalian bertanya - tanya apa itu animasi CSS3 pada blog maka.....Kali ini saya akan sharing tentang Animasi CSS3 pada gambar. ini saya dapatkan dari
hendro prayitno .
tetapi saya hanya sharing sedikit aja . langsung aja kita lihat Contohnya :
1. Image hover CSS3
Efek di bawah dapat berganti gambar apabila cursor di dekatkan.
Untuk membuatnya silahkan copy paste kode berikut :
<style type="text/css">.kodokloncat{float:center; margin:0px; autowidth:0px; autoheight:0px; autoborder:none; overflow:hidden}.details{width:200px; height:300px; background:#000; color:#fff; text-align:center} #kodok-3{position:relative;}#kodok-3 img{opacity:1-webkit-transition: opacity;-webkit-transition-timing-function: ease-out;-webkit-transition-duration: 500ms;}#kodok-3 .details{position:absolute;top:0;left:0;opacity: 0;-webkit-transition: opacity;-webkit-transition-timing-function: ease-out;-webkit-transition-duration: 500ms;}#kodok-3 .details:hover{opacity: .9;-webkit-transition: opacity;-webkit-transition-timing-function: ease-out;-webkit-transition-duration: 500ms;}</style><div class="kodokloncat" id="kodok-3">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcW0DyHFGs6QhxVHswKFyfCxWdBym6hAYfS1c-wi0Q3DCJ-9CrXC4Oyoao9_OncP1-nxBATbKGu2XYw-udZPMdJcRSOumZMYPiILPU5i1_5PYF39cQ0rwZdezRAj7JXwq653T9-tma90Q/s400/037.jpg" /><div class="details"><img height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKGzO_qiAsxZYLvh9Iyg5XCvoYdMSK1l3to-K0nYq9YsJZ1V-uZURXuaIVApcae6nsZzGmtEFs5f1oYNfvN340-gQccjttZzry2ocAhR4UMBD6La7Ioykackh1OA67X2mWkkcPX4MI3g/s400/063.jpg" width="400" /></div></div>
2.Memindahkan Gambar Dengan Efek Border Radius
Silahkan arahkan kursor ke gambar di bawah :
Untuk membuatnya copy paste kode berikut :
<style type="text/css">#timings_demo {margin:0 auto;border:0px #aaa solid;padding:10px;}.abstrak_box{width:280px;height:200px;margin-bottom:10px;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcW0DyHFGs6QhxVHswKFyfCxWdBym6hAYfS1c-wi0Q3DCJ-9CrXC4Oyoao9_OncP1-nxBATbKGu2XYw-udZPMdJcRSOumZMYPiILPU5i1_5PYF39cQ0rwZdezRAj7JXwq653T9-tma90Q/s400/037.jpg)}#ease.abstrak_box{-webkit-transition: all 4s ease;-moz-transition: all 4s ease;-o-transition: all 4s ease;-webkit-transition: all 4s ease;transition: all 4s ease;border:1px #f00 solid;}#timings_demo:hover .abstrak_box, #timings_demo.hover_effect .abstrak_box{margin-left:440px;-webkit-border-radius:40px 40px;-moz-border-radius:40px 40px;-o-border-radius:25px;-webkit-transform: rotate(360deg);-moz-transform:rotate(360deg);transform:rotate(360deg);background-color:#fff;</style><div id="timings_demo"><div class="abstrak_box" id="ease"><div class="center"></div></div></div>
3.Membuat Gambar Menghilang
Silahkan arahkan kursor ke gambar dibawah ini :
untuk membuatnya silahkan copy paste kode berikut :
<style type="text/css">
#waktu_demo{margin:0 auto;border:0px #aaa solid;padding:10px;}.amdhas_box {width:280px;height:200px;margin-bottom:10px;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcW0DyHFGs6QhxVHswKFyfCxWdBym6hAYfS1c-wi0Q3DCJ-9CrXC4Oyoao9_OncP1-nxBATbKGu2XYw-udZPMdJcRSOumZMYPiILPU5i1_5PYF39cQ0rwZdezRAj7JXwq653T9-tma90Q/s400/037.jpg)}#ease.amdhas_box {
-webkit-transition: all 4s ease;-moz-transition: all 4s ease;-o-transition: all 4s ease;-webkit-transition: all 4s ease;transition: all 4s ease;border:1px #f00 solid;
}#waktu_demo:hover .amdhas_box, #waktu_demo.hover_effect .amdhas_box{margin-left:440px;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=6)";filter: alpha(opacity=6);-webkit-border-radius:40px 40px;-moz-border-radius:40px 40px;-o-border-radius:25px;-webkit-transform: rotate(360deg);-moz-transform: rotate(360deg);
transform: rotate(360deg);background-color:#fff;</style><div id="waktu_demo"><div class="amdhas_box" id="ease"><div class="center"></div></div></div>
4.membuat gambar berjalan
Silahkan arahkan kursor ke gambar dibawah ini:
untuk membuatnya silahkan copy paste kode berikut :
<style type="text/css">
#japra_demo {margin:0 auto;border:0px #aaa solid;padding:10px;}.feti_box {width:280px;height:200px;margin-bottom:10px;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcW0DyHFGs6QhxVHswKFyfCxWdBym6hAYfS1c-wi0Q3DCJ-9CrXC4Oyoao9_OncP1-nxBATbKGu2XYw-udZPMdJcRSOumZMYPiILPU5i1_5PYF39cQ0rwZdezRAj7JXwq653T9-tma90Q/s400/037.jpg)}#ease.feti_box {
-webkit-transition: all 4s ease-in;-moz-transition: all 4s ease-in;-o-transition: all 4s ease-in;-webkit-transition: all 4s ease-in;transition: all 4s ease-in;border:1px #f00 solid;}#japra_demo:hover .feti_box, #japra_demo.hover_effect .feti_box {margin-left:440px;-moz-transform:rotateY(180deg);-webkit-transform: rotateY(180deg);-webkit-box-sizing: border-box;-moz-box-sizing: border-box;padding: 10px;color: white;text-align: center;background-color: #aaa;</style><div id="japra_demo"><div class="feti_box" id="ease"><div class="center"></div></div></div>
Belum ada tanggapan untuk "Animasi CSS3 pada Blog"
Posting Komentar