SHARE
TWEET

Untitled

a guest Jun 25th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.  
  3.   $('html, body, *').mousewheel(function(e, delta) {
  4.  
  5.      this.scrollLeft -= (delta);
  6.      e.preventDefault();
  7.   });
  8.  
  9. });
  10.  
  11. $(window).scroll(function() {
  12.  
  13.   var $image = $(".image_test");
  14.   var $rt = ($("body").width() - ($image.offset().left + $image.outerWidth()));
  15.  
  16.   console.log($rt);
  17.  
  18. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top