diff --git a/scrollytelling/src/components/debugger/visualizer/visualizer.module.scss b/scrollytelling/src/components/debugger/visualizer/visualizer.module.scss index a5d0263..1b5e1a0 100644 --- a/scrollytelling/src/components/debugger/visualizer/visualizer.module.scss +++ b/scrollytelling/src/components/debugger/visualizer/visualizer.module.scss @@ -27,6 +27,8 @@ visibility: hidden; color: var(--color-white); + animation: fade-in 1s ease-out forwards; + &.initialized { visibility: visible; } @@ -219,6 +221,17 @@ } } +@keyframes fade-in { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0px); + } +} + .tween { --duration-percentage: 0; --start-offset-percentage: 0; diff --git a/website/src/app/components/cyllinder/index.tsx b/website/src/app/components/cyllinder/index.tsx index a454348..b403054 100644 --- a/website/src/app/components/cyllinder/index.tsx +++ b/website/src/app/components/cyllinder/index.tsx @@ -5,9 +5,8 @@ import Image from "next/image"; import s from "./cyllinder.module.scss"; import clsx from "clsx"; -import { defaultConfig, useMapToCylinder } from "./helpers"; +import { useMapToCylinder } from "./helpers"; import { Experiment } from "../../../lib/types"; -import { useMedia } from "../../../hooks/use-media"; import Link from "next/link"; import { useViewportSize } from "~/hooks/use-viewport"; @@ -22,8 +21,7 @@ const itemsInViewAtOnce = 7; const itemsPadding = 4; export const Cyllinder: React.FC = ({ experiments }) => { - const { height, aspect } = useViewportSize(); - const isMobileSize = useMedia("(max-width: 768px)"); + const { height } = useViewportSize(); const pinSpacerHeight = `calc(3 * ${itemHeight} * ${ Math.max(itemsInViewAtOnce, experiments.length) + itemsPadding })`; @@ -51,9 +49,9 @@ export const Cyllinder: React.FC = ({ experiments }) => { callbacks={{ onRefresh: () => update(progress.value), }} - // debug={{ - // label: "cylinder", - // }} + debug={{ + label: "Cylinder", + }} >
{ const wordsArray = text.split(" "); @@ -45,23 +44,8 @@ export const FallingCaps = () => { [] ); - const perWordTimeline = useMemo( - () => - getTimeline({ - start: 0, - end: 50, - /* Chunk per word */ - chunks: splittedText.length, - overlap: 0.7, - }), - [splittedText] - ); - return ( - +
diff --git a/website/src/app/sections/footer/index.tsx b/website/src/app/sections/footer/index.tsx index a9a9be3..5f7330b 100644 --- a/website/src/app/sections/footer/index.tsx +++ b/website/src/app/sections/footer/index.tsx @@ -20,10 +20,7 @@ export const Footer = () => { const isDesktopSm = useMedia("(min-width: 1024px)"); return ( - +