style: plain full-bleed darkened background, no blur/fade
This commit is contained in:
1 parent
f4bba8b9a3
commit
121b9405ec
1 file changed
+7
-13
@@ -439,23 +439,17 @@
|
||||
}
|
||||
var bgel = document.querySelector('.background');
|
||||
if (bg && bgel) {
|
||||
// Mimic Lampa's native background: subtle blur, soft vignette,
|
||||
// and a smooth fade-in (set opacity 0 first, then animate to 1
|
||||
// on the next frame so the CSS transition actually runs).
|
||||
bgel.style.transition = 'opacity .45s ease';
|
||||
// Plain full-bleed background, no blur/fade effects.
|
||||
// Darkened via brightness so text stays readable.
|
||||
bgel.style.transition = 'none';
|
||||
bgel.style.backgroundImage = 'url("' + bg + '")';
|
||||
bgel.style.backgroundSize = 'cover';
|
||||
bgel.style.backgroundPosition = 'center';
|
||||
bgel.style.backgroundRepeat = 'no-repeat';
|
||||
bgel.style.filter = 'blur(22px)';
|
||||
bgel.style.transform = 'scale(1.08)';
|
||||
bgel.style.boxShadow = 'inset 0 0 260px 130px rgba(0,0,0,0.6)';
|
||||
bgel.style.opacity = '0';
|
||||
requestAnimationFrame(function () {
|
||||
requestAnimationFrame(function () {
|
||||
bgel.style.opacity = '1';
|
||||
});
|
||||
});
|
||||
bgel.style.filter = 'brightness(0.4)';
|
||||
bgel.style.transform = 'none';
|
||||
bgel.style.boxShadow = 'none';
|
||||
bgel.style.opacity = '1';
|
||||
}
|
||||
} catch (e) { console.log('[mymovies] bg err', e); }
|
||||
if (!$('.mymovies-detail .full-start-new__buttons .full-start__button.selector').length) {
|
||||
|
||||
Reference in new issue
Block a user