Skip to content

Commit

Permalink
gradient cover
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Sep 11, 2012
1 parent c44ef6e commit 459ceb7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
3 changes: 3 additions & 0 deletions js/meny.js
Expand Up @@ -146,6 +146,9 @@ var Meny = {
dom.cover.style.visibility = 'hidden';
dom.cover.style.zIndex = 1000;
dom.cover.style.background = 'rgba( 0, 0, 0, 0.4 )';
dom.cover.style.background = '-ms-linear-gradient('+ config.position +', rgba(0,0,0,0.20) 0%,rgba(0,0,0,0.65) 100%)';
dom.cover.style.background = '-moz-linear-gradient('+ config.position +', rgba(0,0,0,0.20) 0%,rgba(0,0,0,0.65) 100%)';
dom.cover.style.background = '-webkit-linear-gradient('+ config.position +', rgba(0,0,0,0.20) 0%,rgba(0,0,0,0.65) 100%)';
dom.cover.style.opacity = 0;
dom.cover.style[ prefix( 'transition' ) ] = 'all .5s ease';
dom.contentsElement.appendChild( dom.cover );
Expand Down
46 changes: 24 additions & 22 deletions js/meny.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 459ceb7

Please sign in to comment.