You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/content/docs/03-template-syntax.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1024,7 +1024,7 @@ Like actions, transitions can have parameters.
1024
1024
1025
1025
Transitions can use custom functions. If the returned object has a `css` function, Svelte will create a CSS animation that plays on the element.
1026
1026
1027
-
The `t` argument passed to `css` is a value between `0` and `1` after the `easing` function has been applied. *In* transitions run from `0` to `1`, *out* transitions run from `1` to `0` — in other words `1` is the element's natural state, as though no transition had been applied. The `u` argument is equal to `1 - t`.
1027
+
The `t` argument passed to `css` is a value between `0` and `1` after the `easing` function has been applied. *In* transitions run from `0` to `1`, *out* transitions run from `1` to `0` — in other words,`1` is the element's natural state, as though no transition had been applied. The `u` argument is equal to `1 - t`.
1028
1028
1029
1029
The function is called repeatedly *before* the transition begins, with different `t` and `u` arguments.
1030
1030
@@ -1415,7 +1415,7 @@ Svelte's CSS Variables support allows for easily themeable components:
1415
1415
1416
1416
---
1417
1417
1418
-
So you can set a highlevel theme color:
1418
+
So you can set a high-level theme color:
1419
1419
1420
1420
```css
1421
1421
/* global.css */
@@ -1575,7 +1575,7 @@ Note that explicitly passing in an empty named slot will add that slot's name to
1575
1575
1576
1576
---
1577
1577
1578
-
Slots can be rendered zero or more times, and can pass values *back* to the parent using props. The parent exposes the values to the slot template using the `let:` directive.
1578
+
Slots can be rendered zero or more times and can pass values *back* to the parent using props. The parent exposes the values to the slot template using the `let:` directive.
1579
1579
1580
1580
The usual shorthand rules apply — `let:item` is equivalent to `let:item={item}`, and `<slot {item}>` is equivalent to `<slot item={item}>`.
1581
1581
@@ -1666,7 +1666,7 @@ If `this` is falsy, no component is rendered.
1666
1666
1667
1667
The `<svelte:element>` element lets you render an element of a dynamically specified type. This is useful for example when displaying rich text content from a CMS. Any properties and event listeners present will be applied to the element.
1668
1668
1669
-
The only supported binding is `bind:this`, since the element typespecific bindings that Svelte does at build time (e.g. `bind:value` for input elements) do not work with a dynamic tag type.
1669
+
The only supported binding is `bind:this`, since the element type-specific bindings that Svelte does at build time (e.g. `bind:value` for input elements) do not work with a dynamic tag type.
1670
1670
1671
1671
If `this` has a nullish value, the element and its children will not be rendered.
0 commit comments