css文字图片动画

Following on from last week’s issue (and inspired a bit by receiving the latest Type Directors Club annual in the post), I spent some more time looking at vintage posters. The spark came about when I went looking through the last couple emails from DJR’s Font of the Month Club. I discovered that January’s edition contained a bonus: a new, more complete version of Gimlet in variable format, complete with axes for width, weight, italic, and optical size!

从上周的刊物开始(后来收到了最新的Type Directors Club的启发),我花了更多时间看老式的海报。 当我浏览DJR的“本月俱乐部字体”中的最后几封电子邮件时,就产生了火花。 我发现一月份的版本有一个好处:可变格式的Gimlet的新版本更加完整,并带有宽度,重量,斜体和光学尺寸的轴!

I’ve loved Gimlet since I first saw an early version just after variable fonts were introduced, and have used it for various demos over the years. I love its quirky 60’s vibe, and have always thought it reminded me of period poster and advertising design.

自从在引入可变字体之后就首次看到早期版本以来,我就一直喜欢Gimlet,并且多年来已将其用于各种演示。 我喜欢60年代古怪的氛围,并且一直认为它让我想起了时代海报和广告设计。

So that’s where we went.

这就是我们去的地方。

搜索很少看到的东西 (Searching for what’s seldom seen)

One of the most common and visually arresting techniques in graphic design is creating the illusion of interplay between text and image. The shifting of typographic forms before and behind photographic elements creates dynamic tension, sparking interest and examination. These techniques have been in use for hundreds of years in illustration, magazine and poster design, and can even be seen in the title screen of the latest streaming sensation, Cheer.

图形设计中最常见且视觉上引人注目的技术之一是创造文本和图像之间相互作用的幻觉。 摄影元素前后的印刷形式的变化产生了动态的张力,激发了人们的兴趣和审视。 这些技术已经在插图,杂志和海报设计中使用了数百年,甚至可以在最新的流媒体轰动声Cheer的标题屏幕中看到。

Notice how the letters intertwine with the squad
注意字母如何与小队交织

Have a look at this poster from Schmid/Widmaier (via the TDC annual). Notice how the abstracted letterforms drift in front of and behind the hand.

看看Schmid / Widmaier的这张海报(通过TDC年报)。 注意抽象的字母形式如何在手的前面和后面漂移。

A really striking design that’s part of a set of four from this talented duo
一个非常引人注目的设计,是这个才华横溢的二人组中的四个的一部分

Or this stunning travel promotion by Cussetti. Note the way the flowers curl around the ‘P’ in Paris. Subtle, but lovely.

或者是库塞蒂(Cussetti)的这次惊人的旅行促销 。 请注意花朵在巴黎的“ P”周围卷曲的方式。 微妙,但可爱。

A really gorgeous poster overall, but the flowers curling around the ‘P’ is particularly beautiful
总体而言,这是一个非常漂亮的海报,但卷曲在“ P”上的花朵特别漂亮

那么您为什么在网络上呢? (So wherefore art thou on the web?)

The simple answer is that we don’t see this kind of interplay between text and image because it used to be hard to do. We’re conditioned on the web to keep things simple: images in boxes, text on top. Usually on a semi-transparent block. Always optimizing for a system-driven, content-managed, ever-changing world of new posts published every day with no time for design or development intervention.

简单的答案是我们看不到文本和图像之间的这种相互作用,因为它过去很难做到。 我们以网络为条件,使事情变得简单:框内的图片,顶部的文字。 通常在半透明块上。 始终针对每天发布的新帖子而进行系统驱动,内容管理,不断变化的世界进行优化,而没有时间进行设计或开发干预。

While it would be impractical to think every page, promotion, or post could be designed and custom-coded, I’ve written about a middle ground before — and this is another good example. The core text content doesn’t need much if anything modified, but spending a little bit of time customizing a clip-path mask for the text overlaying the image can create some really dynamic effects without requiring very much code.

尽管认为每个页面,促销或帖子都可以设计和自定义编码是不切实际的,但我之前已经写过一篇中间文章,这是另一个很好的例子。 核心文本内容并不需要太多修改,但是花一点时间为覆盖图像的文本自定义剪切路径蒙版可以创建一些真正的动态效果,而无需太多代码。

The photo as posted on Instagram in all it’s filtered glory
这张照片发布在Instagram上,充满了荣耀

捕捉旅行虫 (Catching the travel bug)

Taking cues from the poster examples, I dug though my photo archive and found one I posted to Instagram a few years ago on my way back from Baltimore. It’s got a really graphic quality to it that seemed like it would fit. I decided on a horizontal crop that focused on the tail. Setting the image as a background sized to 100% kept it filling the container, and let me set up the basic layout.

从海报示例中获取线索,我翻阅了我的照片档案,并发现了几年前我从巴尔的摩回来时在Instagram上发布的照片​​。 它具有真正的图形质量,看起来很合适。 我决定选择侧重于尾巴的水平作物。 将图像设置为100%的背景大小可以使其填充容器,并让我设置基本布局。

.poster {  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/57225/79D7C2EE-7F10-4AEB-9434-8988EFC7BD52.jpeg);  background-repeat: no-repeat;  background-size: 100%;  ...}.poster-mask {  ...  height: 100%;  width: 100%;  z-index: 1;}h1 {  color: rgba(0,0,67,.7);  font-family: "Gimlet";  font-size: 15vw;  font-stretch: 75%;  font-weight: 900;  font-variation-settings: 'ital' 1;  line-height: 1.1;  padding: 5vw 2vw 0 2vw;  width: 75vw;}
Text and image without any masking
文字和图像没有任何遮罩
Shape editor in Firefox Dev Tools
Firefox开发工具中的形状编辑器

Now what I want to do is allow the text to fall behind the tail of the plane without resorting to adding separate image files with different transparency to sandwich the text (though that’s a pretty interesting technique as well). Enter CSS attribute ‘clip-path’ (and it’s vendor-prefixed cousin to ensure compatibility w/Safari). I found a good article on CSS Tricks about it, and after a little fiddling with the Shapes editor in the Firefox Dev Tools (thanks Jen, Miriam, & the Dev Tools team!) I had pretty good masking layer created.

现在,我想做的就是允许文本落在飞机的尾部,而无需借助添加具有不同透明度的单独图像文件来夹住文本(尽管这也是一种非常有趣的技术)。 输入CSS属性“ clip-path”(这是供应商前缀的表亲,以确保与Safari兼容)。 我在CSS Tricks上找到了一篇不错的文章 ,并且在Firefox开发工具中的Shapes编辑器有点摆弄之后(感谢Jen,Miriam和开发工具团队!),我创建了相当不错的遮罩层。

Everything is done in percentages and the text is set including viewport units so we can be sure it will all scale nicely. You can always tweak the size values in other ways to fit your layout needs. But with a little bit of Grid for layout layering, this holds up pretty well.

一切都以百分比完成,并且设置了包括视口单位在内的文本,因此我们可以确保它们都可以很好地缩放。 您始终可以通过其他方式调整大小值以适合您的布局需求。 但是,由于使用了一点网格来进行布局分层,因此效果很好。

.poster-mask {  ...  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 69.34% 90.23%, 79.17% 10.09%, 68.35% 8.66%, 35.89% 77.18%, 31.83% 83.22%, 0% 100%);  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 69.34% 90.23%, 79.17% 10.09%, 68.35% 8.66%, 35.89% 77.18%, 31.83% 83.22%, 0% 100%);  z-index: 1;}

Since we are on the web in this example, I’ve added a bit of animation as the whole thing loads. I think that’s one of the emerging areas of typgraphy on the web that should be explored more. Animating type along axes during load or when content comes into view is a wonderful way to draw the readers eye. You don’t want to go overboard — and you should respect preferences for reduced motion — but it’s easy to do and animates beautifully.

由于在此示例中我们位于网络上,因此在整个加载过程中添加了一些动画。 我认为这是网络上印刷术的新兴领域之一,应进一步探索。 在加载过程中或内容出现时沿轴动画显示类型是吸引读者眼球的绝佳方法。 您不想过分地做-您应该尊重偏爱减少运动的偏好-但它很容易做到且动画效果精美。

The final layout combining various axis combinations of Gimlet and the clip-path masking helping the type hide behind the tail of the plane
最终的布局结合了Gimlet的各种轴组合和剪切路径蒙版,帮助该类型隐藏在飞机尾部后面

While certainly not something you might do every day, you could imagine this working really well on a landing page or home page teaser (or some other promo usage). Indeed, given how much time publications put into their cover and article intros in print, it seems an obvious place to put some effort to create this kind of effect on their sites.

尽管当然不是您每天都可以做的事情,但您可以想象这在登陆页面或主页预告片(或其他促销用途)上确实能很好地工作。 确实,鉴于出版物在封面和文章介绍中投入了多少时间,似乎显然是在其网站上花些力气创造这种效果的地方。

This experiment certainly has its limitations, but it does scale pretty well. I hope you’ll find this inspiring enough to try out osme of these techniques on your own projects. Be sure to share when you do!

这个实验当然有其局限性,但确实可以很好地扩展。 希望您能从中获得启发,并在自己的项目中尝试这些技术。 务必在分享时分享!

资源资源 (Resources)

  • Example on CodePen

    CodePen上的示例

  • CSS-Tricks post on clipping

    CSS技巧的剪辑

  • caniuse.com stats and notes

    caniuse.com统计和注释

This is an excerpt from my weekly newsletter about web fonts and typography. If you’d like a weekly dose of web typography tips, news, and my upcoming talks and workshops, you can sign up for the newsletter here.

这是我关于网络字体和排版的每周新闻摘要。 如果您想每周查看一些网络排版技巧,新闻以及我即将举行的讲座和研讨会,则可以 在此处注册新闻通讯

If you this helpful, please share what you make — and if there’s something you’d like to see covered in a future issue, please let me know!

如果您有帮助,请分享您的工作-如果您希望在以后的期刊中看到一些内容,请告诉我!

Originally published at rwt.io on February 7, 2020.

最初于 2020 年2月7日 rwt.io 发布

翻译自: https://medium.com/web-typography-news/text-image-interplay-animation-5abe92bcd31b

css文字图片动画


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

相关文章:

  • android 全屏动画_如何创建全屏视频开幕动画
  • 证明欧几里得最大公约数算法
  • python用递归方式实现最大公约数_Python 最大公约数算法 - Python 3 基础教程
  • Shader Graph 呼吸灯设置
  • FPGA—按键控制呼吸灯的时间
  • 呼吸灯 fpga实现
  • STM32呼吸灯
  • 51单片机实现呼吸灯
  • Notification呼吸灯设置流程浅析
  • SpringBoot整合redisTemplate获取自增主键
  • 设置虚拟环境
  • matplotlib 简单入门
  • python3.7安装
  • jupyter-notebook
  • t420i升级固态硬盘提升_雷克沙移动固态硬盘体验:给自己办公最大升级,数据读写速度飙升...
  • 多线程、cpu本质原理
  • 如何选购电脑cpu(值得你观看)
  • 好消息!60多种便民事项“一端”办理
  • 什么是线索二叉树?
  • 为什么要有线索二叉树?
  • 【数据结构】二叉树的概念 | 满二叉树和完全二叉树 | 二叉树的基本性质
  • 二叉树介绍与详解(一)
  • 二叉树的定义和基本术语
  • 二叉树的后继节点
  • 数据结构之什么是二叉树(满二叉树和完全二叉树)以及和树的区别
  • 二叉树基本概述
  • 问:什么是满二叉树?什么是完全二叉树?什么是平衡二叉树?什么是二叉查找树?
  • 为什么使用二叉树?
  • 二叉树,什么是叶子节点
  • [数据结构]什么是树?什么是二叉树?

css文字图片动画_文字图像互动动画相关推荐

  1. html图片隐藏文字,怎样用CSS隐藏图片背景的文字内容

    这次的案列是怎样用CSS隐藏图片背景的文字内容,我们先使用使用background背景是将图片设为背景显示:然后使用text-indent缩进是隐藏a链接内容和链接标签是对文字设置锚文本链接.下面就是 ...

  2. Web前端,CSS背景图片大小、文字阴影、盒子阴影、过渡

    前言 持续学习总结输出中,今天分享的是Web前端,CSS背景图片大小.文字阴影.盒子阴影.过渡 背景图片大小 background-size:宽度 高度; 设置背景图片的大小 取值 场景 数字+px ...

  3. html图片左侧现实文字,css 关于图片上显示文字

    图片上显示文字,现在有很多主流的方法,最常用的就是position设置为relative或者absolute. 本文带来了一种新的实现方式:采用height为0+overflow为visible的方式 ...

  4. 计算机课件文字,计算机应用基础_文字处理wordppt课件.ppt

    <计算机应用基础_文字处理wordppt课件.ppt>由会员分享,提供在线免费全文阅读可下载,此文档格式为ppt,更多相关<计算机应用基础_文字处理wordppt课件.ppt> ...

  5. html图片加文字批量处理,图片批量加水印工具,图片批量添加文字|图片同时添加文字或图片水印...

    一般在网上下载的图片都会自动带有相应网站的文字或是图片水印,虽然可能在使用图片素材的时候,图片上的水印会在一定程度上影响美观,但是水印是对于版权或者是原创的一个保护,图片水印不仅是可以保护别人的原创图 ...

  6. android 同根动画_[转载]Android anim动画切换效果

    关于动画的实现,Android提供了Animation,在Android SDK介绍了2种Animation模式: 1. Tween Animation:通过对场景里的对象不断做图像变换(平移.缩放. ...

  7. ios开发 方形到圆的动画_画个圆动画,的两种实现。iOS 动画由很浅,入浅,当然是 Swift...

    方法一,使用 CAShapeLayer 和 UIBezierPath 加上 CABasicAnimation 有一个动画属性 strokeEnd 就算完 方法二,复杂一些.频繁调用 CALayer 的 ...

  8. animator创建动画_为游戏创建动画的基础

    animator创建动画 You can consider animation as the technique or procedure of making the illusion of moti ...

  9. ue4 怎么修改骨骼动画_【UE4】动画重定向

    虚幻4动画重定向 重定向虚幻争霸中两个角色,使用同一套动画. 1.首先我们从虚幻商城下载两个角色到项目内.(我这里选择了Wraith.Revenant) 由于需要使用另外的动画,我这里选择将两个骨架的 ...

最新文章

  1. thinkpad e40 热键hotkey失效解决办法
  2. What is mobile platform?
  3. 第二篇T语言实例开发(版本5.3),福彩3D摇号器
  4. (chap2 TCP/IP基础知识) TCP/IP协议分层模型-应用层
  5. mfc指示灯报警显示_消防水炮需要外置声光报警吗
  6. 看苏宁易购的运营保障体系如何hold住818大促
  7. mysql数据库优化课程---13、mysql基础操作
  8. C和指针之字符串strspn、strcspn函数源代码的实现
  9. 论文浅尝 - ICLR2020 | 通过神经逻辑归纳学习有效地解释
  10. 程序员放弃月薪2W的工作,改行做销售,结果垫底,网友:瞎折腾
  11. wampserver橙色如何变成绿色_PLC视频教程:手机如何控制西门子变频器V20
  12. 【实战Java高并发程序设计6】挑战无锁算法
  13. 设计模式-第五篇之命令模式
  14. 美团搜索广告排序推荐,从机器学习到深度学习的模型实践
  15. 将图片url转为base64的方法
  16. 【Ubuntu】常用Vim插件
  17. java知识竞赛题库_java程序设计题库
  18. Linux字符设备驱动之LED驱动
  19. 5G核心网技术基础自学系列 | (增强型)专用核心网
  20. 巴西龟饲养日志-----日常护理

热门文章

  1. php重定向返回200,PHP重定向回上一页
  2. Mapbox特效(3D飞线)
  3. php 继承类构造函数,PHP类构造函数继承性问题
  4. C++ future使用
  5. 你知道今天是什么日子吗?
  6. Android 上下滚动条、轮训滚动、广告条
  7. Java OpenSsl 证书
  8. Python爬取网页并存储为pdf
  9. 闭包的概念,作用,和优缺点
  10. Android文件存储与读取(手机内存、SD卡)