Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 6c07cd1

Browse files
committed
Adding gradient background color to overlay layer, cooler!
1 parent 3854196 commit 6c07cd1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

intro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@
582582
};
583583

584584
setTimeout(function() {
585-
styleText += 'opacity: .5;';
585+
styleText += 'opacity: .8;';
586586
overlayLayer.setAttribute('style', styleText);
587587
}, 10);
588588
return true;

introjs.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
z-index: 999999;
44
background-color: #000;
55
opacity: 0;
6+
background: -moz-radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
7+
background: -webkit-gradient(radial,center center,0px,center center,100%,color-stop(0%,rgba(0,0,0,0.4)),color-stop(100%,rgba(0,0,0,0.9)));
8+
background: -webkit-radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
9+
background: -o-radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
10+
background: -ms-radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
11+
background: radial-gradient(center,ellipse cover,rgba(0,0,0,0.4) 0,rgba(0,0,0,0.9) 100%);
12+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#66000000',endColorstr='#e6000000',GradientType=1);
613
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
714
filter: alpha(opacity=50);
815
-webkit-transition: all 0.3s ease-out;

0 commit comments

Comments
 (0)