File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ mdc: true
94
94
95
95
# Anchor point
96
96
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 " >
98
98
99
99
<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 >
100
100
@@ -132,14 +132,28 @@ mdc: true
132
132
133
133
</div >
134
134
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
+ />
136
141
137
142
Use ` pos1 ` and ` pos2 ` to specify the anchor point on the snapped elements.
138
143
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
+ />
141
153
```
142
154
155
+ </div >
156
+
143
157
---
144
158
145
159
# Appearance
You can’t perform that action at this time.
0 commit comments