Berbagi Artikel-Artikel Unik Dan Bermutu

Blog Archive

Copyright © 2015 Artikel TopNews | . Powered by Blogger.

Labels

ads3

tag

Top Artikel

ads2

ads

iklan

Cara Membuat Tombol Download Dengan CSS3 Di Blog


saya punya Tutorial blog yg baru saya ketahui. Tombol ini sangat berguna untuk Blog/Web yg postingan nya tentang Download. Untuk Tutorial yg ini saya gunakan CSS3 dan tanpa JS/Jquery. makanya tidak bikin LELET. Yg penasaran langsung Sedot ilmunya chin,,,


  • Login Ke Blogger
  • Klik Template => Edit HTML
  • Cari kode berikut
]]></b:skin>
  • Masukkan kode CSS3 berikut tepat Di Atas kode tadi
.a-btn{
    background:#80da8d;
    background:-webkit-gradient(linear,left top,left bottom,color-stop(#80da8d,0),color-stop(#4e9558,1));
    background:-webkit-linear-gradient(top, #80da8d 0%, #4e9558 100%);
    background:-moz-linear-gradient(top, #80da8d 0%, #4e9558 100%);
    background:-o-linear-gradient(top, #80da8d 0%, #4e9558 100%);
    background:linear-gradient(top, #80da8d 0%, #4e9558 100%);
    filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#80da8d', endColorstr='#4e9558',GradientType=0 );
    padding-left:20px;
    padding-right:80px;
    height:38px;
    display:inline-block;
    position:relative;
    border:1px solid #1ca930;
    -webkit-box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2), 0px 0px 0px 4px rgba(188,188,188,0.5);
    -moz-box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2), 0px 0px 0px 4px rgba(188,188,188,0.5);
    box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2), 0px 0px 0px 4px rgba(188,188,188,0.5);
    -webkit-border-radius:20px;
    -moz-border-radius:20px;
    border-radius:20px;
    float:left;
    clear:both;
    margin:10px 0px;
    overflow:hidden;
    -webkit-transition:all 0.3s linear;
    -moz-transition:all 0.3s linear;
    -o-transition:all 0.3s linear;
    transition:all 0.3s linear;
}
.a-btn-text{
    padding-top:8px;
    display:block;
    font-size:18px;
    white-space:nowrap;
    font-family: 'Oswald', Arial, sans-serif;
    text-shadow:0px 1px 1px rgba(255,255,255,0.3);
    color:#03530e;
    -webkit-transition:all 0.2s linear;
    -moz-transition:all 0.2s linear;
    -o-transition:all 0.2s linear;
    transition:all 0.2s linear;
}
.a-btn-slide-text{
    position:absolute;
    height:100%;
    top:0px;
    right:52px;
    width:0px;
    background:#374639;
    text-shadow:0px -1px 1px #363f49;
    color:#deebe0;
    font-family: 'Oswald', Arial, sans-serif;
    font-size:18px;
    white-space:nowrap;
    text-transform:uppercase;
    text-align:left;
    text-indent:10px;
    overflow:hidden;
    line-height:38px;
    -webkit-box-shadow:-1px 0px 1px rgba(255,255,255,0.4), 1px 1px 2px rgba(0,0,0,0.2) inset;
    -moz-box-shadow:-1px 0px 1px rgba(255,255,255,0.4), 1px 1px 2px rgba(0,0,0,0.2) inset;
    box-shadow:-1px 0px 1px rgba(255,255,255,0.4), 1px 1px 2px rgba(0,0,0,0.2) inset;
    -webkit-transition:width 0.3s linear;
    -moz-transition:width 0.3s linear;
    -o-transition:width 0.3s linear;
    transition:width 0.3s linear;
}
.a-btn-icon-right{
    position:absolute;
    right:0px;
    top:0px;
    height:100%;
    width:52px;
    border-left:1px solid #1ca930;
    -webkit-box-shadow:1px 0px 1px rgba(255,255,255,0.4) inset;
    -moz-box-shadow:1px 0px 1px rgba(255,255,255,0.4) inset;
    box-shadow:1px 0px 1px rgba(255,255,255,0.4) inset;
}
.a-btn-icon-right span{
    width:38px;
    height:38px;
    opacity:0.7;
    position:absolute;
    left:50%;
    top:50%;
    margin:-20px 0px 0px -20px;
    background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGzcuht7dcclfYj5fcw6zbY3Vcp_j_4gRMFeOXjgRb1RsnmGJS1drqlcOP1CXKzkbSh7HO_9lwbnqsylAqwUVFgpyOq3Vm9icwEgGz5xQdaDBuIo4w-PLdHFKIy183HUGEYh6fXy7AmA/s1600/arrow_right.png) no-repeat 50% 55%;
    -webkit-transition:all 0.3s linear;
    -moz-transition:all 0.3s linear;
    -o-transition:all 0.3s linear;
    transition:all 0.3s linear;
}
.a-btn:hover{
    padding-right:180px;
    -webkit-box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2);
    -moz-box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2);
    box-shadow:0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2);
}
.a-btn:hover .a-btn-text{
    text-shadow:0px 1px 1px #1ca930;
    color:#deebe0;
}
.a-btn:hover .a-btn-slide-text{
    width:100px;
}
.a-btn:hover .a-btn-icon-right span{
    opacity:1;
}
.a-btn:active{
    position:relative;
    top:1px;
    background:#1ca930;
    -webkit-box-shadow:1px 1px 2px rgba(0,0,0,0.4) inset;
    -moz-box-shadow:1px 1px 2px rgba(0,0,0,0.4) inset;
    box-shadow:1px 1px 2px rgba(0,0,0,0.4) inset;
    border-color:#80da8d;
}

  • Kemudian cari kode berikut
<head>
  • Masukkan kode berikut tepat Di Bawah kode tadi
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>

  • Save Template
  • Untuk Memunculkan nya di Postingan masukkan kode berikut di Postingan
  • Ubah dulu menjadi HTML. Jangan Compose
<a href="#" class="a-btn">
<span class="a-btn-text">Download</span>
<span class="a-btn-slide-text">It's free!</span>
<span class="a-btn-icon-right"><span></span></span>
</a>

Semoga Bermanfaat & Jangan Lupa Tinggalkan Komentar,,, Jangan sungkan untuk bertanya !!!
0 Komentar untuk "Cara Membuat Tombol Download Dengan CSS3 Di Blog"
Back To Top