Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libs/c2/blocks/global-navigation/global-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@ export default async function init(el) {
});
return {};
});
gnavPromise.then(() => requestAnimationFrame(() => window.lenis?.resize()));
config.federal = { fedsGlobalNavigation: gnavPromise };
}
4 changes: 2 additions & 2 deletions libs/c2/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ span.hang-opening-quote {
z-index: 0;
animation-name: parallax-move-up-fast;
animation-timeline: scroll(root block);
animation-range: 0 80vh;
animation-range: var(--feds-promo-bar-height, 0px) calc(var(--feds-promo-bar-height, 0px) + 80vh);
animation-timing-function: ease-out;

&::after {
Expand All @@ -1397,7 +1397,7 @@ span.hang-opening-quote {
pointer-events: none;
animation: parallax-fade-to-dark linear both;
animation-timeline: scroll(root block);
animation-range: 0 80vh;
animation-range: var(--feds-promo-bar-height, 0px) calc(var(--feds-promo-bar-height, 0px) + 80vh);
z-index: 2;
}
}
Expand Down
1 change: 0 additions & 1 deletion libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2308,7 +2308,6 @@ async function loadPostLCP(config) {
const lenisPreventSelectors = [
'.dialog-modal',
'.ot-sdk-container',
'.global-navigation',
'div[data-testid="main-content-area"]',
];
window.lenis = new window.Lenis({
Expand Down
Loading