Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit 4f8a82a

Browse files
committed
0213
1 parent 3ce2110 commit 4f8a82a

4 files changed

Lines changed: 46 additions & 0 deletions

File tree

echozyr2001_FullStack_Compass.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,50 @@
7878

7979
最近在忙工作上的事,今天抽空暂时就做到这。
8080

81+
### 02.13
82+
83+
> 学习时间:60 min
84+
85+
使用里一段时间 `framer` 发现它确实有很多实用的特效和动画效果,但是和 `figma` 想比,它有一个很大的缺点:不能导出成代码。
86+
87+
`framer` 只能通过 publish 的方式发布设计的页面,这很方便,但是依赖 `framer` 官方,且缺少可定制性。
88+
89+
接下来还是回到 `figma` 的使用上吧。
90+
91+
---
92+
93+
字体最好设置在 `16px``18px` 之间
94+
95+
选择一个 `layer` 使用快捷键 `Shift + a` 可以将 `layer` 转换为 `frame`
96+
97+
`frame` 的布局设置为 `Hug` 可以自动适应页面布局
98+
99+
快捷键 `opt + cmd + k` 可以将 `frame` 转换为一个组件
100+
101+
---
102+
103+
创建可交互式组件
104+
105+
命名规则 `button/default/unsaved`
106+
107+
> 为什么要使用斜线分隔的命名系统?
108+
>
109+
> 使用斜杠 ( / ) 构造组件名称可让您快速设置组件的属性值。第一个斜杠之前的任何文本都将成为组件名称,并且每个额外的斜杠级别都会创建一个新属性,该属性将应用于组件集中的所有变体。例如,我们的按钮名称为 button/default/unsaved。
110+
>
111+
> 添加一个变体后,组件集将看起来像:
112+
>
113+
> Component set name: button
114+
>
115+
> Property 1: default
116+
>
117+
> Property 2: unsaved
118+
>
119+
> 要完成配置,我们需要更新属性名称并为组件集中的每个变体添加属性值。
120+
121+
![interactive](./images/echozyr2001/interactive.png)
122+
123+
![layer](./images/echozyr2001/layer.png)
124+
125+
![animation](./images/echozyr2001/animation.png)
126+
81127
<!-- Content_END -->

images/echozyr2001/animation.png

65.4 KB
Loading

images/echozyr2001/interactive.png

142 KB
Loading

images/echozyr2001/layer.png

28.8 KB
Loading

0 commit comments

Comments
 (0)