mirror of https://github.com/sveltejs/svelte
23 lines
313 B
23 lines
313 B
<script>
|
|
let visible = false;
|
|
|
|
function typewriter(node, { speed = 50 }) {
|
|
// implementation goes here
|
|
|
|
return {
|
|
|
|
};
|
|
}
|
|
</script>
|
|
|
|
<label>
|
|
<input type="checkbox" bind:checked={visible}>
|
|
visible
|
|
</label>
|
|
|
|
{#if visible}
|
|
<p transition:typewriter>
|
|
The quick brown fox jumps over the lazy dog
|
|
</p>
|
|
{/if}
|