Permalink
Browse files

gradient cover

  • Loading branch information...
1 parent c44ef6e commit 459ceb7cc106e234ff76dfb235b75af19f2b6cde @hakimel committed Sep 11, 2012
Showing with 27 additions and 22 deletions.
  1. +3 −0 js/meny.js
  2. +24 −22 js/meny.min.js
View
@@ -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 );
View
Oops, something went wrong.

0 comments on commit 459ceb7

Please sign in to comment.