惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
D
DataBreaches.Net
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
小众软件
小众软件
美团技术团队
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
D
Docker
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
H
Hackread – Cybersecurity News, Data Breaches, AI and More
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
S
SegmentFault 最新的问题
云风的 BLOG
云风的 BLOG
B
Blog
雷峰网
雷峰网
The Cloudflare Blog

博客园 - surfsky

用阿里的 sketch 插件 FusionDesign 来快速设计中后台 百度、高德、腾讯、天地图、谷歌、必应瓦片图地图切图工具 MapCutter(旧名 MapTiler),支持超大图、高清切片、webgl、leaflet、maptalk、openlayers、cesium netcore 下的 Javascript 表达式求值 netcore 下的 C# 表达式求值 中标麒麟安装SQLServer 中标麒麟上开启MySql 在 MAC 下配置 Nginx Color Schema 配色随笔 .Net与 WebAssembly 随笔 关于Xamarin、Qml、数据绑定、MVC、MVVM 相关的散讲 用Nuget部署程序包 Qt3D Qt3D Shader Qt QML 2D shader LearnOpenGL Qt3D 5.9 and future FineUI 相关 EntityFramwork 七七八八 Qt qml 单例模式
用 Sketch 设计和输出响应式网页
surfsky · 2020-07-01 · via 博客园 - surfsky

本文档描述了用 sketch 设计和输出响应式 html5 网页的步骤。

相关附件已经放在github上: https://github.com/surfsky/SketchResponsive.git

2018-08-06

一、安装Anima Sketch 插件

Anima 插件官网:http://launchpad.animaapp.com

AutoLayout:https://www.youtube.com/watch?v=v393LgriWCs&frags=pl%2Cwn

Stack Layout:https://www.youtube.com/watch?v=DiCXg17CwIY&frags=pl%2Cwn

To Responsive Html:

https://www.youtube.com/watch?v=00Hjzw9_YLs&t=1105s&frags=pl%2Cwn

https://www.youtube.com/watch?v=E3xZui2myUU

两个已发布的测试网站:

https://launchpad.animaapp.com/autoResponsive

https://launchpad.animaapp.com/autoweb

GitHub:

https://github.com/AnimaApp/Auto-Layout

https://github.com/AnimaApp/Launchpad

二、用Anima 插件设计布局

1)使用pin和stack进行定位(注意嵌套的symbols内部也必须使用pin或stack)

 

2)用 Breakpoints 进行多分辨率适配

 

3)其它功能:

名称

说明

Links

网页跳转

Breakpoints

网页分辨率自适应切换

Overlay

浮动层

Fixed

固定位置?

Set Home

设置选中Artboard为主页

Widgets

三方Widget插件,如google 地图

Forms

将选中元件用web表单控件替代(输入框/提交按钮)

Video/Gif

将选中元件用视频动画替代

Hover

浮动?

Animations

动画?

Manage

管理发布的网页

三、拉伸Sketch Artboard进行测试

 

四、预览网页并拉伸测试

 

五、 保存网修改html文件

1)建议用chrome保存网页,并用三方编辑器整理代码。

2)可删除尾部免费版的浮动标签代码

 

3)可删除部分Head代码

<!-- saved from url=(0051)https://launchpad.animaapp.com/preview/8GdCX18/demo -->

<link rel="shortcut icon" type="image/png" href="https://animaapp.s3.amazonaws.com/home/favicon.png" />

<meta name="author" content="Launchpad by Anima" /> 

4)保存并用浏览器打开, ok!

ps. 新版本的Anima插件界面布局上略有修改,操作基本一致。可去其官方网站查看最新文档。