Skip to content

Commit 5acaf34

Browse files
author
Rich Harris
committed
tidy up
1 parent e16e13a commit 5acaf34

File tree

1 file changed

+4
-12
lines changed
  • content/tutorial/03-advanced-svelte/02-transitions/04-custom-css-transitions

1 file changed

+4
-12
lines changed

content/tutorial/03-advanced-svelte/02-transitions/04-custom-css-transitions/README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,11 @@ For example, the `fade` transition generates a CSS animation somewhat like this:
3333

3434
```css
3535
/// no-file
36-
0% {
37-
opacity: 0;
38-
}
39-
10% {
40-
opacity: 0.1;
41-
}
42-
20% {
43-
opacity: 0.2;
44-
}
36+
0% { opacity: 0 }
37+
10% { opacity: 0.1 }
38+
20% { opacity: 0.2 }
4539
/* ... */
46-
100% {
47-
opacity: 1;
48-
}
40+
100% { opacity: 1 }
4941
```
5042

5143
We can get a lot more creative though. Let's make something truly gratuitous:

0 commit comments

Comments
 (0)