Skip to content

feat: add Marquee component and refactor ScrollFade with intensity prop#28

Open
ParryPee wants to merge 11 commits into8starlabs:mainfrom
ParryPee:ParryPee/feature-marquee
Open

feat: add Marquee component and refactor ScrollFade with intensity prop#28
ParryPee wants to merge 11 commits into8starlabs:mainfrom
ParryPee:ParryPee/feature-marquee

Conversation

@ParryPee
Copy link
Contributor

@ParryPee ParryPee commented Feb 2, 2026

1. New Component: Marquee Closes #24

  • Added a new Marquee component for continuous scrolling content loops.

  • Infinite Loop: Automatically duplicates children to ensure a seamless, gapless scroll.

  • Customisation: Supports left or right directions and a pauseOnHover feature for better user interactivity.

  • Visual Enhancements: Includes optional greyscale and fade props to match different UI themes.

image

2. Refactor: ScrollFade Intensity

  • Refactored the ScrollFade component to provide more granular control over the visual "strength" of the fade effect.

  • New intensity Prop: Introduced an intensity prop (defaulting to 1) that is clamped between 0 and 1.

  • Clean Implementation: Updated all four directional overlays (Left, Right, Top, Bottom) to respect the new fadeIntensity calculation.

@vercel
Copy link

vercel bot commented Feb 2, 2026

@ParryPee is attempting to deploy a commit to the 8StarLabs' projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@keiloktql keiloktql left a comment

Choose a reason for hiding this comment

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

additional comments

  1. run npm run registry:build to update changes for all the components modified and involved
  2. shift all the svgs to icons, so no more svg files

<div className="flex flex-col gap-2 overflow-hidden">
<Marquee greyscale={true}>
<div className="w-30 h-14">
<img
Copy link
Contributor

Choose a reason for hiding this comment

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

shift all the svgs to icons.tsx and import them to use it for consistency sake

@@ -57,6 +57,27 @@
--color-code-number: var(--code-number);
--color-selection: var(--selection);
--color-selection-foreground: var(--selection-foreground);
Copy link
Contributor

Choose a reason for hiding this comment

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

do these get added to users' globals.css when they install?

```

```tsx showLineNumbers
<Marquee Grayscale={false}>
Copy link
Contributor

Choose a reason for hiding this comment

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

lowercase

import React from "react";

interface MarqueeProps {
greyscale?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

standardize all grey to gray

Copy link
Contributor

Choose a reason for hiding this comment

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

including filenames

className={cn(
"flex overflow-hidden p-2 [--gap:3rem]",
pauseOnHover && "group/marquee",
greyscale && "grayscale contrast-200",
Copy link
Contributor

Choose a reason for hiding this comment

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

add dark:invert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

[feat]: Marquee component

2 participants