Socket
Socket
Sign inDemoInstall

@ctx-core/carousel

Package Overview
Dependencies
30
Maintainers
1
Versions
1213
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ctx-core/carousel

ctx-core carousel


Version published
Weekly downloads
84
decreased by-80.24%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

11.2.372

Patch Changes

  • @ctx-core/fontawesome: ^16.2.206 -> ^16.2.207

Readme

Source

@ctx-core/carousel

Install

npm i @ctx-core/carousel

Usage

<script>
	import Carousel from '@ctx-core/carousel'
</script>

<Carousel>
	<div class="slide slide-1">
		<h1>Slide 1</h1>	
	</div>
	<div class="slide slide-2">
		<h1>Slide 2</h1>	
	</div>
	<div class="slide slide-3">
		<h1>Slide 3</h1>	
	</div>
</Carousel>

<style>
	.slide {
		background-size: cover;
	}
	.slide-1 {
		background-image: url(https://images.unsplash.com/photo-1517770317945-aa2dd9c9306f);
	}
	.slide-2 {
		background-image: url(https://images.unsplash.com/photo-1556023176-4b9ee95cfe9b);
	}
	.slide-3 {
		background-image: url(https://images.unsplash.com/photo-1555999003-3f2bc447570e);	
	}
</style>

Styling

This Carousel is a simple left/right carousel. The slide styling is left up to you.

You can override:

  • :global(.Carousel .button)
  • :global(.Carousel .button:hover)
  • :global(.Carousel .button.prev)
  • :global(.Carousel .button.next)
  • :global(.Carousel svg)

Keywords

FAQs

Last updated on 21 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc