diff --git a/site/content/tutorial/16-special-elements/05-svelte-body/app-a/App.svelte b/site/content/tutorial/16-special-elements/05-svelte-body/app-a/App.svelte new file mode 100644 index 0000000000..075a503b8e --- /dev/null +++ b/site/content/tutorial/16-special-elements/05-svelte-body/app-a/App.svelte @@ -0,0 +1,30 @@ + + + + + + + +Kitten wants to know what's going on \ No newline at end of file diff --git a/site/content/tutorial/16-special-elements/05-svelte-body/app-b/App.svelte b/site/content/tutorial/16-special-elements/05-svelte-body/app-b/App.svelte new file mode 100644 index 0000000000..dbe4ed804d --- /dev/null +++ b/site/content/tutorial/16-special-elements/05-svelte-body/app-b/App.svelte @@ -0,0 +1,33 @@ + + + + + + + +Kitten wants to know what's going on \ No newline at end of file diff --git a/site/content/tutorial/16-special-elements/05-svelte-body/text.md b/site/content/tutorial/16-special-elements/05-svelte-body/text.md new file mode 100644 index 0000000000..71656b1625 --- /dev/null +++ b/site/content/tutorial/16-special-elements/05-svelte-body/text.md @@ -0,0 +1,14 @@ +--- +title: +--- + +Similar to ``, the `` element allows you to listen for events that fire on `body`. This is useful with the `mouseenter` and `mouseleave` events, which don't fire on `window`. + +Add the `mouseenter` and `mouseleave` handlers to the `` tag: + +```html + +``` \ No newline at end of file diff --git a/site/static/tutorial/kitten.png b/site/static/tutorial/kitten.png new file mode 100644 index 0000000000..6ef37691bc Binary files /dev/null and b/site/static/tutorial/kitten.png differ