aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js/redbasic.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r--view/theme/redbasic/js/redbasic.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 7c5df0834..809776220 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -7,6 +7,7 @@ $(document).ready(function() {
if($('#cover-photo').length && $(window).width() > 767) {
$('.navbar-fixed-top').css('position', 'relative');
$('main').css('padding-top', 0 + 'px');
+ $('main').css('opacity', 0);
}
else {
$('#cover-photo').remove();
@@ -71,4 +72,8 @@ $(window).scroll(function () {
$('.navbar-fixed-top').css('position', 'fixed');
$('#cover-photo').remove();
}
+
+ if($('#cover-photo').length) {
+ $('main').css('opacity', ($(window).scrollTop()/$('#cover-photo').height()).toFixed(1));
+ }
});