mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
add page flip
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ function initialize() {
|
||||
var newScroll = $(document).scrollTop(),
|
||||
diff = newScroll-lastScroll;
|
||||
treshold = (treshold+diff>headerHeight) ? headerHeight : treshold+diff;
|
||||
treshold = (treshold < 0) ? 10 : treshold;
|
||||
treshold = (treshold < 0) ? -10 : treshold;
|
||||
|
||||
$('#flip').css('bottom', (-treshold)+'px');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user