How to ready awesome blogger dorsum to summit push amongst smoothen scrolling
Installing Smooth Back To Top inwards Blogger similar my site - Maybe it's a lot of splatter on the mesh almost the tutorial
how to install the fundamental dorsum to the top in the spider web log in addition to this fourth dimension I volition part tips almost the tutorial.
how to install the fundamental dorsum to the top in the spider web log in addition to this fourth dimension I volition part tips almost the tutorial.
The role in addition to business office of the push dorsum to transcend itself is quite of import that makes it slowly for visitors who desire to larn dorsum to the transcend of the page mengscroll past times merely clicking a button. Note: If an existing template dorsum to transcend button, delight take it first.
Here's how to installation:
i - Login to Blogger Dashboard> choose blogs> choose Templates> thence click the Edit HTML, relieve the next code afterward the <head> or before </ head>
<link href='//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css' rel='stylesheet'/>
If fontawesome already added on to your site than ignore this step.2 - Save the below css before ]]></b:skin> or </style>
.smoothscroll-top { position:fixed; opacity:0; visibility:hidden; overflow:hidden; text-align:center; z-index:99; background-color:#2ba6e1; color:#fff; width:47px; height:44px; line-height:44px; right:25px; bottom:-25px; padding-top:2px; border-radius:5px; transition:all 0.5s ease-in-out; transition-delay:0.2s; } .smoothscroll-top:hover { background-color:#3eb2ea; color:#fff; transition:all 0.2s ease-in-out; transition-delay:0s; } .smoothscroll-top.show { visibility:visible; cursor:pointer; opacity:1; bottom:25px; } .smoothscroll-top i.fa { line-height:inherit; }
3 - Save the below JQuery in addition to HTML before </body>
<div class="smoothscroll-top"> <span class="scroll-top-inner"> <i class="fa fa-2x fa-arrow-circle-up"></i> </span> </div> <script type='text/javascript'> //<![CDATA[ $(function(){ $(document).on( 'scroll', function(){ if ($(window).scrollTop() > 100) { $('.smoothscroll-top').addClass('show'); } else { $('.smoothscroll-top').removeClass('show'); } }); $('.smoothscroll-top').on('click', scrollToTop); }); business office scrollToTop() { verticalOffset = typeof(verticalOffset) != 'undefined' ? verticalOffset : 0; chemical cistron = $('body'); offset = element.offset(); offsetTop = offset.top; $('html, body').animate({scrollTop: offsetTop}, 600, 'linear').animate({scrollTop:25},200).animate({scrollTop:0},150) .animate({scrollTop:0},50); } //]]> </script>
4 - After that Save the Template in addition to encounter result.Now savour the awesome Back to Top push inwards your blog. Happy Blogging in addition to decease along sharing our posts. Thanks.
Comment below if you lot accept whatever work ;)
Belum ada Komentar untuk "How to ready awesome blogger dorsum to summit push amongst smoothen scrolling"
Posting Komentar