В EXTRA.css
В PAGE_CONTAINER в самый конец перед </html>
Исходники с ракетой оставил можете под себя настроить и заменить ссылку в CSS коде. Как работает можно увидеть на gif скрине.
HTML:
#rocketmeluncur {
position: fixed;
bottom: 50px;
z-index: 7;
display: none;
visibility: hidden;
width: 26px;
height: 48px;
right: 0px;
background: url(http://1.bp.blogspot.com/-UR9I7YEuEUY/VXIJn8MrBPI/AAAAAAAAKRE/qZObHBd5zIo/s1600/rocket.png) no-repeat 50% 0;
opacity: 0;
-webkit-transition: visibility .6s cubic-bezier(0.6, 0.04, 0.98, 0.335), opacity .6s cubic-bezier(0.6, 0.04, 0.98, 0.335), -webkit-transform .6s cubic-bezier(0.6, 0.04, 0.98, 0.335);
-moz-transition: visibility .6s cubic-bezier(0.6, 0.04, 0.98, 0.335), opacity .6s cubic-bezier(0.6, 0.04, 0.98, 0.335), -moz-transform .6s cubic-bezier(0.6, 0.04, 0.98, 0.335);
transition: visibility .6s cubic-bezier(0.6, 0.04, 0.98, 0.335), opacity .6s cubic-bezier(0.6, 0.04, 0.98, 0.335), transform .6s cubic-bezier(0.6, 0.04, 0.98, 0.335);
}
#rocketmeluncur i {
display: block;
margin-top: 48px;
height: 14px;
background: url(http://1.bp.blogspot.com/-UR9I7YEuEUY/VXIJn8MrBPI/AAAAAAAAKRE/qZObHBd5zIo/s1600/rocket.png) no-repeat 50% -48px;
opacity: .5;
-webkit-transition: -webkit-transform .2s;
-moz-transition: -moz-transform .2s;
transition: transform .2s;
-webkit-transform-origin: 50% 0;
-moz-transform-origin: 50% 0;
transform-origin: 50% 0
}
#rocketmeluncur:hover {
background-position: 50% -62px
}
#rocketmeluncur:hover i {
background-position: 50% 100%;
-webkit-animation: flaming .7s infinite;
-moz-animation: flaming .7s infinite;
animation: flaming .7s infinite
}
#rocketmeluncur.showrocket {
visibility: visible;
opacity: 1
}
#rocketmeluncur.launchrocket {
background-position: 50% -62px;
opacity: 0;
-webkit-transform: translateY(-800px);
-moz-transform: translateY(-800px);
-ms-transform: translateY(-800px);
transform: translateY(-800px);
pointer-events: none
}
#rocketmeluncur.launchrocket i {
background-position: 50% 100%;
-webkit-transform: scale(1.4, 3.2);
-moz-transform: scale(1.4, 3.2);
transform: scale(1.4, 3.2)
}
В PAGE_CONTAINER в самый конец перед </html>
HTML:
<a href="javascript:void(0);" id="rocketmeluncur" class="showrocket" style="display: none; left: auto;bottom: 20px; right: 5px"><i></i></a>
<script>
jQuery(window).scroll(function(){
if(jQuery(window).scrollTop()<50){
jQuery('#rocketmeluncur').slideUp(500);
}else{
jQuery('#rocketmeluncur').slideDown(500);
}
var ftrocketmeluncur = jQuery("#ft")[0] ? jQuery("#ft")[0] : jQuery(document.body)[0];
var scrolltoprocketmeluncur = $('rocketmeluncur');
var viewPortHeightrocketmeluncur = parseInt(document.documentElement.clientHeight);
var scrollHeightrocketmeluncur = parseInt(document.body.getBoundingClientRect().top);
var basewrocketmeluncur = parseInt(ftrocketmeluncur.clientWidth);
var swrocketmeluncur = scrolltoprocketmeluncur.clientWidth;
if (basewrocketmeluncur < 1000) {
var leftrocketmeluncur = parseInt(fetchOffset(ftrocketmeluncur)['left']);
leftrocketmeluncur = leftrocketmeluncur < swrocketmeluncur ? leftrocketmeluncur * 2 - swrocketmeluncur : leftrocketmeluncur;
scrolltoprocketmeluncur.style.left = ( basewrocketmeluncur + leftrocketmeluncur ) + 'px';
} else {
scrolltoprocketmeluncur.style.left = 'auto';
scrolltoprocketmeluncur.style.right = '10px';
}
})
jQuery('#rocketmeluncur').click(function(){
jQuery("html, body").animate({ scrollTop: '0px',display:'none'},{
duration: 600,
easing: 'linear'
});
var self = this;
this.className += ' '+"launchrocket";
setTimeout(function(){
self.className = 'showrocket';
},800)
});
</script>
Исходники с ракетой оставил можете под себя настроить и заменить ссылку в CSS коде. Как работает можно увидеть на gif скрине.