figma button

Anchor Links aren’t the most exciting interaction to design, but they are a crucial design element for validating long form content and larger websites. It’s not intuitive to create Anchor Links but it’s possible with the Scroll Overflow technique, if you’re careful with layer management. I’ll show you how to create one, how you can organise your layers to keep it manageable, and a couple of limitations you may encounter.

锚链接并不是设计中最令人兴奋的交互,但它们是验证长格式内容和较大网站的关键设计元素。 创建锚链接并不是很直观,但是如果您对图层管理很谨慎的话,可以使用滚动溢出技术。 我将向您展示如何创建一个图层,如何组织图层以使其易于管理以及可能遇到的一些限制。

Here’s the Figma preview link if you just want to see a proof-of-concept:

如果您只是想查看概念验证,请点击这里,查看Figma预览链接:

https://www.figma.com/proto/6lHkEfRTTArHCwNxPCAYm8/medium-blogs?node-id=1%3A102&viewport=226%2C592%2C0.5461657047271729&scaling=scale-down-width

https://www.figma.com/proto/6lHkEfRTTArHCwNxPCAYm8/medium-blogs?node-id=1%3A102&viewport=226%2C592%2C0.5461657047271729&scaling=scale-down-width

什么是滚动溢出 (What is Scroll Overflow)

If you’ve been designing functional prototypes for mobile devices within Figma then this is a concept you’ll have encountered. In many apps you’ll want some elements such as the app bar to remain in a fixed position, whilst letting the rest of the elements and content be scrollable. It’s often talked about with the ‘Fix position when scrolling’ checkbox feature, since it’s only possible once you’ve activated an Overflow Behavior.

如果您一直在为Figma设计移动设备的功能原型,那么您将遇到这个概念。 在许多应用程序中,您希望某些元素(如应用程序栏)保持在固定位置,同时让其余元素和内容可滚动。 它经常与“滚动时固定位置”复选框功能有关,因为只有在激活“溢出行为”后才有可能。

When the content of a Frame doesn’t fit, you get the ‘Overflow Behavior’ dropdown in the Prototype tab.
当框架的内容不合适时,您会在“原型”选项卡中获得“溢出行为”下拉列表。

As you can see in the screenshot above, I have a parent Frame called ‘iPhone 11 Pro / X — 1’ with layers inside that are larger than the parent Frame. When this happens I can set the Overflow Behavior to ‘Vertical Scrolling’, and I’ve also ticked the ‘Fix position when scrolling’ checkbox for my app bar at the bottom. This allows a viewer to scroll the page up and down in Figma’s Presentation View more realistically.

如您在上面的屏幕快照中所见,我有一个名为“ iPhone 11 Pro / X — 1”的父框架,其内部层大于父框架。 发生这种情况时,我可以将“溢出行为”设置为“垂直滚动”,并在底部的应用栏上勾选“滚动时固定位置”复选框。 这使查看者可以更实际地在Figma的Presentation View中向上和向下滚动页面。

You can read more about it in the Figma documentation for prototype scrolling with overflow behaviour.

您可以在Figma文档中阅读有关它的更多信息,以进行带有溢出行为的原型滚动 。

锚链接解剖 (Anchor Link anatomy)

Diagram detailing the anatomy of creating an Anchor Link in Figma.
该图详细说明了在Figma中创建锚链接的解剖结构。

There are three key parts required to create an Anchor Link:

创建锚链接需要三个关键部分:

  • Page Content页面内容
  • View Windows查看视窗
  • Anchor Links锚链接

准备页面内容 (Prepare the Page Content)

First we need to prepare the Page Content. I’m going to assume in your editor you already have a page in a Frame or a Group. You’ll need to select your page and turn it into a Component by right-clicking and selecting ‘Create Component’ or press Cmd + Option + K on Mac. We’ll be using instances of this component to create our Anchor Links. This is a key step to avoid excess design overhead if you need to make changes later.

首先,我们需要准备页面内容。 我假设您的编辑器中已经有一个框架或组中的页面。 您需要选择页面并将其变成一个组件,方法是右键单击并选择“创建组件”,或者在Mac上按Cmd + Option + K 。 我们将使用该组件的实例来创建我们的锚链接。 如果您以后需要进行更改,这是避免过多设计开销的关键步骤。

Snippets showing the difference between a non-component page, top, and a component page, bottom.
片段显示了非组件页面顶部和下部组件页面之间的差异。

创建视图窗口 (Creating the View Windows)

Next we need to create the view windows for each Anchor Link. Count the number of Anchor Links you want to create, and then make that many Frames in your editor. You’ll typically want one more to act as the ‘home’ or default Anchor to the top. I like to use the built-in defaults Figma supplies in the Design tab on the right when you change to the Frame tool in the top left, or use the shortcut by pressing F.

接下来,我们需要为每个“锚链接”创建视图窗口。 计算您要创建的锚链接的数量,然后在编辑器中创建这么多的框架。 您通常会希望再有一个充当“家”或顶部的默认锚点。 当您更改为左上方的Frame工具时,我喜欢在右侧的Design选项卡中使用Figma提供的内置默认值,或者通过按F使用快捷方式。

A snippet showing the built-in Frame sizes using popular screens sizes you may be designing for.
使用您可能要设计的流行屏幕尺寸显示内置框架尺寸的代码段。

You can freehand your viewing Frame as long as the width is the same as your page content, and the height is shorter. Ideally you’ll match the aspect ratio of the screen you’re designing for such as 3:2 for classic screens, 16:9 for modern HD screens, or 19.5:9 of the iPhone X. Name each view with the Anchor Link names so that they’re easier to find later.

只要宽度与页面内容相同,并且高度较短,就可以徒手查看框架。 理想情况下,您要匹配要设计的屏幕的长宽比,例如经典屏幕为3:2,现代高清屏幕为16:9或iPhone X的19.5:9。使用Anchor Link名称为每个视图命名以便日后更容易找到它们。

The three Anchor Links I want to create, and the default ‘Home’ Frame I want to start with.
我要创建的三个锚链接,以及我要开始使用的默认“主页”框架。

Next, you’ll want to place instances of your Page Content within each Frame. Instead of placing the page content with the top aligned to the top, you need to stagger it so the top of the View Window lines up to where you want the Anchor Link to appear. In my example I have an Anchor Link for the ‘Figma’ category, so on the View Window I’ve aligned that heading item on the page content towards the top. If ‘Clip content’ isn’t ticked it should look something like the below.

接下来,您需要在每个框架内放置页面内容的实例。 您无需将页面内容的顶部与顶部对齐,而是将其错开排列,以使“视图窗口”的顶部与希望锚点链接出现的位置对齐。 在我的示例中,我具有“ Figma”类别的“锚链接”,因此在“查看窗口”中,我已将页面内容上的标题项朝顶部对齐。 如果未选中“剪辑内容”,则其外观应类似于以下内容。

Demonstrating the stagger effect made when assembling Anchor Links together.
展示将锚链组装在一起时产生的交错效果。

To make sure that you’ve lined up the page content correctly in each of the view windows you can tick the ‘Clip content’ checkbox. When your View Window is selected, it’ll be in the Design tab on the right underneath the dimensions and positioning information. In the example I’ve used, I can use the blog cards as a guide to line up the Anchors to look more natural.

为确保已在每个视图窗口中正确排列页面内容,可以选中“剪辑内容”复选框。 选择“查看窗口”后,它将位于尺寸和位置信息下方右侧的“设计”选项卡中。 在我使用的示例中,我可以使用博客卡作为指导来排列锚点,使其看起来更加自然。

With the ‘Clip content’ checkbox ticked, you can preview what the viewer will see after clicking the Anchor Links.
选中“剪辑内容”复选框,您可以预览单击“锚链接”后查看者将看到的内容。

Finally you’ll want to ensure that the Overflow Behavior is set to ‘Vertical Scrolling’ in the Prototype tab of each view window before you move on.

最后,您需要确保在继续操作之前,在每个视图窗口的“原型”选项卡中将“溢出行为”设置为“垂直滚动”。

使锚工作 (Making the Anchors work)

Finally, the last piece of the puzzle you’ll need to make working Anchor Links. On the master component of your Page Content you’ll want to ensure each of the buttons, hyperlinks or images you’re using are individual items. This allows you to attach a new prototype interaction to each. If you’re using hyperlinks as is with my example you can use master text underneath as a guide, then hide the guide text layer or use the same colour as the background to hide it in Presentation View.

最后,制作工作锚链接需要完成拼图的最后一部分。 在页面内容的主组件上,您需要确保所使用的每个按钮,超链接或图像都是单独的项。 这使您可以将新的原型交互附加到每个交互。 如果像我的示例一样使用超链接,则可以使用下面的主文本作为参考,然后隐藏参考文本层或使用与背景相同的颜色将其隐藏在Presentation View中。

You can see the guide text in black when I hide my ‘Figma’ hyperlink item.
当我隐藏“ Figma”超链接项目时,您会看到黑色的指导文字。
Once it’s lined up, you can see my ‘Figma’ hyperlink placed exactly where it should be.
对齐后,您可以看到我的“ Figma”超链接准确放置在应有的位置。

Once you’re done setting it up, all you need to do is insert an ‘On Click’ interaction to each of your Anchor Links pointing to the corresponding View Window. Make sure you haven’t selected any layers by clicking the empty space on the editor, double check that the ‘Home’ page is the Starting Frame in the Prototype tab settings in the top right, then click the play button in the top right to check out your new Anchor Link prototype.

设置完成后,您需要做的就是向指向相应视图窗口的每个锚链接插入“单击”交互。 单击编辑器上的空白区域,确保没有选择任何图层,再次检查“主页”页面是否为右上角“原型”选项卡设置中的“起始帧”,然后单击右上角的“播放”按钮以查看新的Anchor Link原型。

When selecting no layers, you can see all your Anchor Links should be pointing to their corresponding View Window.
当不选择任何层时,您可以看到所有的锚链接都应指向它们相应的“查看窗口”。

更新页面内容 (Updating your Page Content)

If you aren’t fluent in using Figma’s Components feature, it’s worth mentioning that any changes you make to your Page Content should be done on the master component. Any changes made on the Page Content instances inside the View Window Frames will be unique to each and break the Anchor Link illusion. You can make sure you’re editing the master component by checking that it’s purple, and that it has the master component symbol ❖.

如果您不熟练使用Figma的“组件”功能,则值得一提的是,您对“页面内容”所做的任何更改都应在主组件上进行。 在“视图窗口框架”内的“页面内容”实例上进行的任何更改都是唯一的,并打破了“锚链接”的幻觉。 您可以通过检查它是否为紫色以及是否带有主组件符号❖来确保正在编辑主组件。

Viewing the Master Component in the layers panel on the left, and in the main stage editor on the right.
在左侧的“层”面板中以及在右侧的主舞台编辑器中查看“主组件”。

You can see a demo of this tutorial using the link below.

您可以使用下面的链接查看本教程的演示。

https://www.figma.com/proto/6lHkEfRTTArHCwNxPCAYm8/medium-blogs?node-id=1%3A102&viewport=226%2C592%2C0.5461657047271729&scaling=scale-down-width

https://www.figma.com/proto/6lHkEfRTTArHCwNxPCAYm8/medium-blogs?node-id=1%3A102&viewport=226%2C592%2C0.5461657047271729&scaling=scale-down-width

局限性 (Limitations)

There’s a couple of things that are either limitations of what’s possible in Figma, things that require too much overhead to manage, or I simply wasn’t able to achieve.

有几件事要么限制了Figma的功能,要么需要过多的管理开销,或者我根本无法实现。

平滑滚动 (Smooth scrolling)

I’ve experimented using the ‘Smart Animate’ feature a little bit, but couldn’t get the Anchor Links to work predictably. It might be good option for pages you only expect your users to smoothly be Anchored down once such as with a Product home page.

我已经尝试过使用“智能动画”功能,但无法使锚链接可预期地工作。 对于仅希望用户一次顺利锚定用户的页面(例如产品主页),这可能是一个不错的选择。

滚动到顶部 (Scroll to top)

I’ve tried it by adding ‘scroll to top’ hyperlinks going to the ‘Home’ view window. With the method and layout I’ve used here it doesn’t work if you simply scroll down, but it does after clicking one of the Anchor Links at the top. This happens because Figma is clever enough to deactivate interactions that point to itself, but it makes more complex Anchor Link illusions a little more difficult to accomplish.

我已经尝试通过将“滚动到顶部”超链接添加到“主页”视图窗口来进行尝试。 使用我在这里使用的方法和布局,如果您简单地向下滚动,则无法使用,但是在单击顶部的“锚链接”之一后,它可以使用。 发生这种情况是因为Figma足够聪明,可以停用指向自身的交互,但是这会使更复杂的Anchor Link幻觉变得更加难以实现。

Whilst Anchor Links are quite simple to implement in code, it’s a little more complex to set it up in a prototype in Figma. Even so, it’s important to have a robust and immersive solution to get as close to realistic behaviours as possible when using your prototype in your UX Research. Setting up your Page Content as a master component, inserting them into prepared View Windows and then creating your Anchor Links in the master component make managing your design clean and minimal.

尽管Anchor Links在代码中实现起来非常简单,但在Figma的原型中进行设置却要复杂一些。 即使如此,在UX Research中使用原型时,拥有一个健壮且身临其境的解决方案以尽可能接近现实行为也很重要。 将页面内容设置为主组件,将其插入到准备好的View Windows中,然后在主组件中创建锚链接,使设计的管理变得简洁而最少。

Bay Area Black Designers: a professional development community for Black people who are digital designers and researchers in the San Francisco Bay Area. By joining together in community, members share inspiration, connection, peer mentorship, professional development, resources, feedback, support, and resilience. Silence against systemic racism is not an option. Build the design community you believe in. 海湾地区黑人设计师 :一个专业的黑人开发社区,他们是旧金山湾区的数字设计师和研究人员。 通过在社区中团结起来,成员可以共享灵感,联系,同伴指导,专业发展,资源,反馈,支持和韧性。 对系统性种族主义保持沉默是不可行的。 建立您相信的设计社区。

翻译自: https://uxdesign.cc/how-to-create-anchor-links-in-figma-393f0259981a

figma button


http://www.taodudu.cc/news/show-5750956.html

相关文章:

  • 超链接的应用——锚链接
  • Synology群晖套件所有版本
  • Office套件中出现启用编辑
  • java操作office套件-了解文档
  • 2007 Microsoft Office 套件 Service Pack 1 (sp1) 下载地址
  • 解决office套件打开卡顿白屏的问题
  • 安装中标普华office套件
  • office 套件实用技巧
  • 2007 Microsoft Office 套件 Service Pack 2 (SP2)
  • 浏览器对office套件的支持
  • 如何设置和使用MacOS上的Office套件
  • office套件_Microsoft Office 2019 for Mac(office办公套件)
  • 【抢救攻略】/etc/shadow文件误删处理
  • Linux学习-26-passwd命令:修改用户密码
  • Word/PPT/PDF怎么免费转为JPG图片?
  • 将图片转为可编辑的excel、word技巧备忘录
  • word图片怎么转excel表格?有何诀窍?
  • 中医经典一句话
  • 科箭出席2016中国汽车行业智能制造论坛
  • TMS云荣获2016中国物流与采购信息化优秀案例
  • 2017(第三届)智能制造国际论坛即将盛大召开
  • 特殊竞赛类的概率计算
  • 凸n边形的对角线最多能将其内部分成几个区域。
  • 雅思7+、托福110+的英语大神,原来都悄悄关注了这几个视频号!
  • 存量时代如何做数智化营销
  • 使用SSM实现某银行营业网点管理模块,使用MySQL作为后台数据库
  • matlab高级编程 苏金明,MATLAB高级编程
  • mysql创建临时表select_SELECT INTO创建临时表   SQL Server
  • mysql sql语句临时表_mysql 创建与删除临时表sql语句
  • 怎么避免员工离职,自媒体账号带走的情况?

figma button_如何在Figma中创建锚链接相关推荐

  1. 建立书签链接的html语言,如何在HTML中创建书签链接?

    要使用HTML创建书签链接,您需要使用标记名称属性创建书签.现在,添加到书签的链接.书签也称为命名锚.这对于将读者带到网页的特定部分非常有用. 只要记住HTML5中不推荐使用的标记名称属性.不使用. ...

  2. html 单击readmore 无效,如何在html中创建只需要锚点的see-more/Read-more功能?

    我正在做一个网站,由不那么科技精明的人来维护,我需要能够给他们添加使用jquery向上/向下滑动以显示其内容的"see-more"锚点的能力.如何在html中创建只需要锚点的see ...

  3. 如何在Leangoo中创建企业

    Leangoo介绍: Leangoo(中文名:领歌)是一款非常优秀的敏捷项目管理软件.Leangoo核心是看板,团队可以使用Leangoo看板进行项目或产品的需求.任务.问题.缺陷的可视化管理和协作, ...

  4. 如何在android中创建自定义对话框?

    本文翻译自:How to create a Custom Dialog box in android? I want to create a custom dialog box like below ...

  5. 如何在Java中创建一个新的List

    本文翻译自:How to make a new List in Java We create a Set as: 我们创建一个Set为: Set myset = new HashSet() How d ...

  6. html树状图右侧_如何在 Tableau 中创建控制图?

    本文作者:Jose Valero 控制图是用于研究流程如何随时间变化,并确定制造或业务流程是否在统计控制状态下的图表. 我相信这对每家公司来说都是一个有益的工具,所以在这篇文章中,我将尝试如何在 Ta ...

  7. vb在服务器上新建文件夹,vb.net-如果不存在,如何在VB中创建文件夹?

    vb.net-如果不存在,如何在VB中创建文件夹? 我为自己编写了一个小小的下载应用程序,以便我可以轻松地从服务器上获取一组文件,然后将它们全部放入带有全新安装的Windows的新PC上,而无需实际运 ...

  8. vue 递归创建菜单_如何在Vue中创建类似中等的突出显示菜单

    vue 递归创建菜单 by Taha Shashtari 由Taha Shashtari 如何在Vue中创建类似中等的突出显示菜单 (How to Create a Medium-Like Highl ...

  9. vj节点_创意编码—如何在JavaScript中创建VJ引擎

    vj节点 by George Gally 通过乔治·加利 创意编码-如何在JavaScript中创建VJ引擎 (Creative Coding - How to create a VJ engine ...

最新文章

  1. 关于微型计算机的ppt,微型计算机基础知识.ppt
  2. python stringstrip方法详解_Python 的技巧和方法你了解多少?
  3. (转)jQuery禁止右键菜单,全选
  4. Ten ways to improve the performance of large tables in MySQL--转载
  5. 南方s730手簿说明书_最新S730手簿及3.0简易操作82
  6. C++之typename
  7. css多个属性怎么写,具有多个属性的CSS过渡简写?
  8. 在用户空间加载和卸载驱动
  9. A/B test模块使用以及配置
  10. Kubernetes初识
  11. Windows下,BAT文件中使用XCopy复制整个目录
  12. UUID 生成器有多快
  13. 2021-08-23
  14. AMS1117典型电路
  15. 如何运用dos命令进入C盘?Dos常用命令大全
  16. 免费帝国CMS发布插件
  17. 12306的(再次破解)从查票到购票
  18. Numpy创建正态分布和均匀分布
  19. 三维空间图像轮廓 c语言,三维模型轮廓线抽取算法.doc
  20. 计算机论文中的技术路线,论文中的技术路线图怎么写

热门文章

  1. 2011/08/27 刷机器,遭遇白苹果,不可连接ipod服务器 的解决
  2. matlab图像增强实验总结,MatLab图像增强实验
  3. 云边有个小书屋——基于墨刀的读书APP原型化系统
  4. 微信小程序星星评分组件
  5. Python+大数据-数仓实战之滴滴出行(一)
  6. django 按经纬度计算距离排序
  7. ECE220生存指南[03]MP8: 递归函数实现油漆桶问题,Flood Fill with Recursion
  8. 国产操作系统厂商编造假新闻艰难度日
  9. 信息化环境下企业如何做到数据安全
  10. 使用python绘制一朵郁金香