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.
svelte/site/content/tutorial/10-transitions/05-custom-js-transitions/app-a/App.svelte

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}