Team:NYMU-Taipei/TopBar

From 2014.igem.org

(Difference between revisions)
m
m
 
(3 intermediate revisions not shown)
Line 84: Line 84:
             }, 300, 'easeOutSine');
             }, 300, 'easeOutSine');
         });
         });
-
    var scroll_py=0;
+
    $(window).scroll(function (event){
-
    $(window).scroll(function (){
+
        var y = $(this).scrollTop();
-
          var scroll_y = $(this).scrollTop();
+
        $('#flow_div').css({
-
          var bar_y = $('.left-bar').height();
+
            top:250+y,
-
          $('.left-bar').css({
+
        });
-
                top: bar_y+y-py,
+
    });
-
          });
+
-
          py=y;
+
-
    });
+
});
});
</script>
</script>

Latest revision as of 12:04, 5 May 2014