pada tutorial kali ini, admin akan berbagi bagaimana cara membuat tombol scroll top menggunakan CSS dan tambahan JQUERY agar terlihat lebih halus. untuk pertama kali seperti biasa kita buat file inde xnya. mungkin sudah bisa silahkan tambahkan syntax ini diantara body code : <a href="#" class="scrollToTop">Scroll To Top</a> Setelah Memasukan kode di atas. silahkan buat file css code : .scrollToTop { width : 100px ; height : 130px ; padding : 10px ; text-align : center ; background : whiteSmoke ; font-weight : bold ; color : #444 ; text-decoration : none ; position : fixed ; top : 75px ; right : 40px ; display : none ; background : url(' arrow_up.png ') no-repeat 0px 20px ; } .scrollToTop:hover { text-decoration : none ; } Setelah CSSnya sekarang Buat Lagi FIle JSnya. code : $(document).ready(function(){ //Check to see if the window is top if not then display button $(
Web Design, Desktop, Mobile Developer