New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@arisbh/marqueeck

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arisbh/marqueeck

Marqueeck is a custom and customizable marquee component for Sveltekit

  • 0.0.2
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Marqueeck

Marqueeck is a custom marquee component for Sveltekit, speed-eased, style-free and without dependencies.

Features :

  • Auto-repeat slotted elements (reactive to screen width)
  • Custom speed, directions, gap, paddings, etc..
  • Completely unstyled (come with your own classes)
  • Custom hover interactions (stop, custom speed and event forwarding)
  • Optional sticky element (start/end)
  • Debug mode
  • Fully typed with TypeScript

Installation

Install the module from npm

npm i @arisbh/marqueeck

or

pnpm i @arisbh/marqueeck

or

yarn i @arisbh/marqueeck

Usage

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

<script>
	import Marqueeck from '@arisbh/marqueeck';
</script>

<Marqueeck> [Your element] </Marqueeck>

Passing options

You can either pass your options directly in the <Marqueeck/> component :

<script>
	import Marqueeck from '@arisbh/marqueeck';
</script>

<Marqueeck options={{ speed: 75, direction: 'left' }} >
    [Your element]
</Marqueeck>

or by constructing a MarqueeckOptions object, using provided Type :

<script lang="ts">
	import Marqueeck from '@arisbh/marqueeck';
	import type { MarqueeckOptions } from '@arisbh/marqueeck';

	const options: MarqueeckOptions = {
		speed: 75,
		direction: 'left',
		onHover: 'customSpeed',
		hoverSpeed: 15,
		gradualHoverDuration: 750
	};
</script>

<Marqueeck {options}> [Your element] </Marqueeck>

Optional sticky element

You can using the reserved svelte:fragment to place a sticky element inside the component.

<Marqueeck {options}>
	[Your element]
	<svelte:fragment slot="sticky"> [Sticky element] </svelte:fragment>
</Marqueeck>

Edit the placement of the sticky element with stickyPosition inside options.

Default options

const options = {
	speed: 50, // in px/sec
	direction: 'left', // either 'left' or 'right'
	gap: 20, // in px
	paddingX_Wrapper: 20, // in px
	paddingY_Wrapper: 16, // in px
	debug: false,
	onHover: 'customSpeed', // either 'none', 'stop' or 'customSpeed'
	gradualHoverDuration: 1250, // in ms
	hoverSpeed: 10, // in px/sec
	stickyPosition: 'start' // either 'start' or 'end'
};

FAQs

Package last updated on 02 May 2023

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