From 08bcd8936b943d738c421843f733e1a4d3caf57e Mon Sep 17 00:00:00 2001 From: Julian Benegas Date: Tue, 10 Oct 2023 16:13:07 +0200 Subject: [PATCH] m --- .../visualizer/visualizer.module.scss | 13 ++++++++++++ .../src/app/components/cyllinder/index.tsx | 12 +++++------ website/src/app/sections/footer/index.tsx | 5 +---- .../src/app/sections/hero/hero.module.scss | 2 ++ website/src/app/sections/hero/index.tsx | 20 +++++++++++++++++++ .../src/app/sections/last-parallax/index.tsx | 2 +- 6 files changed, 42 insertions(+), 12 deletions(-) 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 isDesktopSm = useMedia("(min-width: 1024px)"); return ( - +