Skip to content

Commit

Permalink
hax
Browse files Browse the repository at this point in the history
  • Loading branch information
Brant Ashe committed May 28, 2024
1 parent f9a653e commit 10d0544
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/BgBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default function TestBgBanner({ debug }: BgBannerProps) {
} | null>();
const callbackRef = useCallback((node: HTMLDivElement) => {
console.log(node);
node.style.top = '50svh';
node.style.position = 'translateY(-50%)';
node.style.position = 'relative';
window.scrollTo(0, 10);
node.style.willChange = 'transform';
}, []);

useEffect(() => {
Expand All @@ -42,6 +39,7 @@ export default function TestBgBanner({ debug }: BgBannerProps) {
<div
ref={callbackRef}
style={{
position: 'relative',
top: '50svh',
transform: 'translateY(-50%)',
height: 400,
Expand Down

0 comments on commit 10d0544

Please sign in to comment.