File tree Expand file tree Collapse file tree 3 files changed +33
-29
lines changed Expand file tree Collapse file tree 3 files changed +33
-29
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,7 @@ introJs().onafterchange(function(targetElement) {
332
332
- `showButtons`: Show introduction navigation buttons or not, `true` or `false`
333
333
- `showBullets`: Show introduction bullets or not, `true` or `false`
334
334
- `scrollToElement`: Auto scroll to highlighted element if it's outside of viewport, `true` or `false`
335
+ - `overlayOpacity`: Adjust the overlay opacity, `Number`
335
336
336
337
See [setOption](https://github.com/usablica/intro.js/#introjssetoptionoption-value) to see an example.
337
338
Original file line number Diff line number Diff line change 55
55
/* Show tour bullets? */
56
56
showBullets : true ,
57
57
/* Scroll to highlighted element? */
58
- scrollToElement : true
58
+ scrollToElement : true ,
59
+ /* Set the overlay opacity */
60
+ overlayOpacity : .8
59
61
} ;
60
62
}
61
63
554
556
555
557
//show the tooltip
556
558
oldtooltipContainer . style . opacity = 1 ;
557
- oldHelperNumberLayer . style . opacity = 1 ;
559
+ if ( oldHelperNumberLayer ) oldHelperNumberLayer . style . opacity = 1 ;
558
560
} , 350 ) ;
559
561
560
562
} else {
848
850
} ;
849
851
850
852
setTimeout ( function ( ) {
851
- styleText += 'opacity: .8 ;' ;
853
+ styleText += 'opacity: ' + self . _options . overlayOpacity . toString ( ) + ' ;';
852
854
overlayLayer . setAttribute ( 'style' , styleText ) ;
853
855
} , 10 ) ;
856
+
854
857
return true ;
855
858
}
856
859
You can’t perform that action at this time.
0 commit comments