Rocket fot xenForo

xF1 Template Modification Rocket fot xenForo 2017-01-10

No permission to download
Compatible XF Versions
  1. 1.0
  2. 1.1
  3. 1.2
  4. 1.3
  5. 1.4
  6. 1.5
Add to EXTRA.css
Code:
#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)
}

Add to PAGE_CONTAINER at the bottom before </html>
Code:
<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>

You can download and change PSD Rocket.
  • 2017-01-09_23-48-00.gif
    2017-01-09_23-48-00.gif
    77.7 KB · Views: 281
Author
Len
Size
45.9 KB
Extension
zip
Downloads
4
Views
2,009
First release
Last update

More resources from Len

731Threads
2,287Messages
63,888Members
VncoLatest member
Back