diff options
| author | Mark Otto <[email protected]> | 2012-07-24 01:53:45 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-07-24 01:53:45 -0700 |
| commit | fa6a131eb654515f690cea5209057af62e83505a (patch) | |
| tree | 0dca68131320706e0164c54111656c3da36a422a /docs | |
| parent | b7b4fd5c82ea321da3d7858e223eb6adcd225672 (diff) | |
| parent | e2fc202df2a5ff0da156904f1574e1620bee5184 (diff) | |
| download | bootstrap-fa6a131eb654515f690cea5209057af62e83505a.tar.xz bootstrap-fa6a131eb654515f690cea5209057af62e83505a.zip | |
Merge branch '2.1.0-wip' of github.com:twitter/bootstrap into 2.1.0-wip
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/assets/js/application.js | 11 |
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() |
