aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/js/application.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js
index 9f1fa704f..e096f0866 100644
--- a/docs/assets/js/application.js
+++ b/docs/assets/js/application.js
@@ -6,6 +6,17 @@
$(function(){
+ // fancy fade jumbotron
+
+ var $jumbotron = $('.jumbotron')
+ , $jcontainer = $('.jumbotron .container')
+ , opacRatio = ($jumbotron.height() / 200 ) * 2
+
+ $(window).on('scroll', function () {
+ var diff = 100 - ($(window).scrollTop() / opacRatio)
+ $jcontainer.css({ opacity: (diff > 0 ? Math.min(diff, 100) : 0) / 100 })
+ })
+
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()