Skip to content

Commit

Permalink
Merge pull request #7 from hyesungoh/fix/#6
Browse files Browse the repository at this point in the history
fix: #6
  • Loading branch information
hyesungoh authored Mar 24, 2022
2 parents 1bd7c08 + 606cc04 commit c07136a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/core/components/PageProgressBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,15 @@ export function PageProgressBar() {
};
}, []);

return <Div style={{ transform: `scaleX(${(pageYOffset / offsetHeight) * 100}%)` }} theme={theme}></Div>;
return <Div style={{ width: `${(pageYOffset / offsetHeight) * 100}%` }} theme={theme}></Div>;
}

const Div = styled.div<{ theme: NextUITheme | undefined }>`
position: fixed;
top: 0;
left: 0;
width: 100vw;
width: 0;
height: 4px;
background-color: ${({ theme }) => theme.colors.primary.value};
transform-origin: left;
transition: transform 0.05s;
transition: width 0.05s;
`;

1 comment on commit c07136a

@vercel
Copy link

@vercel vercel bot commented on c07136a Mar 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.