Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. $(document).ready(function(){
  2. $('a[href^="#"]').on('click',function (e) {
  3. e.preventDefault();
  4.  
  5. var target = this.hash;
  6. var $target = $(target);
  7.  
  8. $('html, body').stop().animate({
  9. 'scrollTop': $target.offset().top
  10. }, 900, 'swing', function () {
  11. window.location.hash = target;
  12. });
  13. });
  14.  
  15.  
  16. $(window).scroll(function(){
  17. if ($(this).scrollTop() > 140) {
  18. $('.about-img').fadeIn();
  19. } else {
  20. $('.about-img').fadeOut();
  21. }
  22.  
  23. });
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. $(window).scroll(function(){
  33. if ($(this).scrollTop() > 400) {
  34. $('.about-text').fadeIn();
  35. } else {
  36. $('.about-text').fadeOut();
  37. }
  38.  
  39. });
  40.  
  41.  
  42.  
  43. $(window).scroll(function(){
  44. if ($(this).scrollTop() > 950) {
  45. $('.skills-box').show("slide", "slow");
  46. } else {
  47. $('.skills-box').fadeOut();
  48. }
  49.  
  50. });
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement