summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-01-09 11:00:58 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-01-09 11:00:58 (GMT)
commit9893f263dccd3e9ab419e08ef3d7a7b0e55f8a82 (patch)
treea2f9c81a871c9e685c6682e43467fada7a501708
parent324240e2565f907f14379ad2c59119f823ffccb3 (diff)
downloadpublik-website-9893f263dccd3e9ab419e08ef3d7a7b0e55f8a82.zip
publik-website-9893f263dccd3e9ab419e08ef3d7a7b0e55f8a82.tar.gz
publik-website-9893f263dccd3e9ab419e08ef3d7a7b0e55f8a82.tar.bz2
js: add faster scrolling of miniscreens
-rw-r--r--static/js/combo.public.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/combo.public.js b/static/js/combo.public.js
index 0c115e4..b6fa61a 100644
--- a/static/js/combo.public.js
+++ b/static/js/combo.public.js
@@ -10,8 +10,8 @@ $(function() {
var offset = parseInt(Math.random()*2000);
var $ecrans = $('.ecrans');
$window.bind('scroll', function() {
- var pos = $window.scrollTop();
- $ecrans.css('background-position', (offset + pos/2) + 'px 0px');
+ var pos = Math.pow($window.scrollTop(), 1.1);
+ $ecrans.css('background-position', (offset + pos) + 'px 0px');
});
$window.trigger('scroll');
}