This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

svelte-bicycle
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Svelte Bicycle Cards 🃏♠️♥️

NOW FIXED

Basic Example

This is a work in progress, and my first package, thank you

I'm working on a card game project if you're interested in following along, I'm on a journey learning as much as possible. The card game project docs are here and the game should be up soon!

Static Badge

Static Badge

<script lang="ts">
	import "./app.css";
	import { onDestroy } from "svelte";

	import * as Bicycle from "svelte-bicycle";
	const deck = Bicycle.Deck;
	onDestroy(() => {
		deck.reset();
	});

	deck.createCards(2, { pair: true });
</script>

<div class="columns-5">
	{#each deck as [id, card]}
	<Bicycle.Card
		on:click="{() => card.flip()}"
		store="{card.store}"
	/>
	{/each}
</div>

Readme

Keywords

none

Package Sidebar

Install

npm i svelte-bicycle

Weekly Downloads

1

Version

1.2.1

License

none

Unpacked Size

344 kB

Total Files

24

Last publish

Collaborators

  • urban841999