Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
Visibility.svelte
<script>
import Visibility from './Visibility.svelte'

let show = true;

function reload() {
show = false;
setTimeout(() => show = true, 100)
}
</script>

<style>
main {
text-align: center;
}

h1 {
letter-spacing: .1rem;
margin-bottom: 100vh;
}
h2 {
padding-bottom: 10rem;
}

section {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 10rem;
padding: 1rem;
position: relative;
box-shadow: 0 0 10px -5px black;
height: 300px;
}

loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */