mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
306 B
19 lines
306 B
6 years ago
|
<script>
|
||
|
let visible = false;
|
||
|
|
||
|
function typewriter(node, { speed = 50 }) {
|
||
|
// implementation goes here
|
||
|
|
||
1 year ago
|
return {};
|
||
6 years ago
|
}
|
||
|
</script>
|
||
|
|
||
|
<label>
|
||
1 year ago
|
<input type="checkbox" bind:checked={visible} />
|
||
6 years ago
|
visible
|
||
|
</label>
|
||
|
|
||
|
{#if visible}
|
||
1 year ago
|
<p transition:typewriter>The quick brown fox jumps over the lazy dog</p>
|
||
3 years ago
|
{/if}
|