Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
konfig-bot committed Oct 19, 2023
1 parent 630692e commit 1e29999
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions konfigthis.com/src/components/UpdatingDocs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ function Visual() {
ref={ref}
className={clsx(
{
["opacity-100 translate-x-0 blur-0"]: inView,
["!opacity-100 !translate-x-0 !blur-0"]: inView,
},
"w-full lg:w-3/5 h-[325px] sm:h-auto rounded-xl shadow-xl transition duration-700 ease-in-out opacity-0 blur-md translate-x-full"
"w-full lg:w-3/5 h-[325px] sm:h-auto rounded-xl shadow-xl transition duration-700 ease-in-out opacity-0 blur-md translate-x-[200%]"
)}
style={{ objectFit: "cover" }}
alt="API Documentation"
Expand All @@ -61,7 +61,5 @@ function useIsInView({ ref }: { ref: React.RefObject<HTMLElement> }): boolean {
if (!ref.current) return false;
const windowBottom = (window.innerHeight * 2) / 3;
const { top, bottom } = ref.current.getBoundingClientRect();
console.log("windowBottom", windowBottom);
console.log("top", top);
return top < windowBottom && bottom > 0;
}

0 comments on commit 1e29999

Please sign in to comment.