1.2.1 • Published 6 months ago

svelte-bicycle v1.2.1

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

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>
1.2.1

6 months ago

1.2.0

6 months ago

1.0.5

7 months ago

1.0.0

7 months ago