Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@288-toolkit/marquee

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@288-toolkit/marquee

```sh pnpm i @288-toolkit/marquee ```

  • 3.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-68.25%
Maintainers
0
Weekly downloads
 
Created
Source

Marquee

pnpm i @288-toolkit/marquee

A css animated generic marquee component.

Props

--gap

Should be set as a css variable.

To make a seamless marquee effect, the component generates whatever is in the slot twice or more. The gap property represents the space between the copies. Default: 0.

--speed

Should be set as a css variable.

The marquee animation duration, which determines the speed of the marquee. The higher the number, the slower the marquee. Default: 12000ms.

direction

The direction of the marquee.

export let direction: 'natural' | 'inverted' = 'natural';

orientation

The orientation of the marquee. Default: horizontal.

export let orientation: 'vertical' | 'horizontal' = 'horizontal';

stopOnHover

Whether the marquee should pause when hovered. Default: false.

export let stopOnHover = false;

Slot props

  • copy (boolean): Wether the rendered slot is a copy of the original.

Example

<script lang="ts">
	import { Marquee } from '@288-toolkit/marquee';
</script>

<section>
	<Marquee direction="natural" stopOnHover>
		{#each ['200/300?1', '200/300?2', '200/300?3', '200/300?4', '200/300?5'] as image}
			<img src="http://placekitten.com/{image}" alt="" />
		{/each}
	</Marquee>
</section>

<style>
	section {
		--gap: 2rem;
		--speed: 40000ms;
	}

	@screen lg {
		section {
			--gap: 4rem;
			--speed: 20000ms;
		}
	}
</style>

FAQs

Package last updated on 09 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc