Skip to content

Commit 7095875

Browse files
committed
Fix
1 parent 8761690 commit 7095875

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

slides.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ mdc: true
9494

9595
# Anchor point
9696

97-
<div absolute left="50%" top="50%" translate-x="-50%" translate-y="-50%" w-100 h-30 border="~ gray/50 rounded-lg" id="anchor-example">
97+
<div absolute left="50%" top-45 translate-x="-50%" w-100 h-30 border="~ gray/50 rounded-lg" id="anchor-example">
9898

9999
<code bg-gray:10 p-1 min-w-25 text-center rounded-md absolute left="50%" top="50%" translate-x="-50%" translate-y="-50%">center</code>
100100

@@ -132,14 +132,28 @@ mdc: true
132132

133133
</div>
134134

135-
<FancyArrow x1="0" y1="0" id2="anchor-example" pos2="topleft" color="red" width="4" roughness="3" arc="-0.4" seed="1" />
135+
<FancyArrow
136+
x1="0" y1="0"
137+
id2="anchor-example"
138+
pos2="left"
139+
color="red" arc="-0.4"
140+
/>
136141

137142
Use `pos1` and `pos2` to specify the anchor point on the snapped elements.
138143

139-
```html
140-
<FancyArrow x1="0" y1="0" id2="anchor-example" pos2="topleft" color="red" width="4" roughness="3" arc="-0.4" seed="1" />
144+
<div mx-auto mt-60>
145+
146+
```html {4}
147+
<FancyArrow
148+
x1="0" y1="0"
149+
id2="anchor-example"
150+
pos2="topleft"
151+
color="red" arc="-0.4"
152+
/>
141153
```
142154

155+
</div>
156+
143157
---
144158

145159
# Appearance

0 commit comments

Comments
 (0)