File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,56 @@ mdc: true
110
110
111
111
---
112
112
113
+ # Anchor point
114
+
115
+ <div absolute left =" 50% " top =" 50% " translate-x =" -50% " translate-y =" -50% " w-100 h-30 border =" ~ gray/50 rounded-lg " id =" anchor-example " >
116
+
117
+ <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 >
118
+
119
+ <code bg-gray:10 p-1 min-w-25 text-center rounded-md absolute left =" 0 " top =" 0 " >
120
+ topleft
121
+ </code >
122
+
123
+ <code bg-gray:10 p-1 min-w-25 text-center rounded-md absolute left =" 50% " top =" 0 " translate-x =" -50% " >
124
+ top
125
+ </code >
126
+
127
+ <code bg-gray:10 p-1 min-w-25 text-center rounded-md absolute right =" 0 " top =" 0 " >
128
+ topright
129
+ </code >
130
+
131
+ <code bg-gray:10 p-1 min-w-25 text-center rounded-md absolute left =" 0 " top =" 50% " translate-y =" -50% " >
132
+ left
133
+ </code >
134
+
135
+ <code bg-gray:10 p-1 min-w-25 text-center rounded-md absolute right =" 0 " top =" 50% " translate-y =" -50% " >
136
+ right
137
+ </code >
138
+
139
+ <code bg-gray:10 p-1 min-w-25 text-center rounded-md absolute left =" 0 " bottom =" 0 " >
140
+ bottomleft
141
+ </code >
142
+
143
+ <code bg-gray:10 p-1 min-w-25 text-center rounded-md absolute left =" 50% " bottom =" 0 " translate-x =" -50% " >
144
+ bottom
145
+ </code >
146
+
147
+ <code bg-gray:10 p-1 min-w-25 text-center rounded-md absolute right =" 0 " bottom =" 0 " >
148
+ bottomright
149
+ </code >
150
+
151
+ </div >
152
+
153
+ <FancyArrow x1 =" 0 " y1 =" 0 " id2 =" anchor-example " pos2 =" topleft " color =" red " width =" 4 " roughness =" 3 " arc =" -0.4 " seed =" 1 " />
154
+
155
+ Use ` pos1 ` and ` pos2 ` to specify the anchor point on the snapped elements.
156
+
157
+ ``` html
158
+ <FancyArrow x1 =" 0" y1 =" 0" id2 =" anchor-example" pos2 =" topleft" color =" red" width =" 4" roughness =" 3" arc =" -0.4" seed =" 1" />
159
+ ```
160
+
161
+ ---
162
+
113
163
# Appearance
114
164
115
165
<div grid =" ~ cols-3 gap-4 " mt-6 >
You can’t perform that action at this time.
0 commit comments