当前位置:首页 > 技术博客 > HTML > html5动态文字特效,文字动画特效

html5动态文字特效,文字动画特效

4年前 (2022-09-26)HTML1179


<!DOCTYPE html>    
<html lang="en" >    
<head>    
<meta charset="UTF-8">    
<title>html5动态文字特效,文字动画特效</title>    
<meta name="viewport" content="width=device-width, initial-scale=1">    
<meta charset="utf-8">    
<link href="https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">    
<style>
body {
  font-family: "Archivo Black", sans-serif;
  background: #f4d03f;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

.words {
  color: #f4d03f;
  font-size: 0;
  line-height: 1.5;
}

.words span {
  font-size: 5rem;
  display: inline-block;
  animation: move 3s ease-in-out infinite;
}

@keyframes move {
  0% {
    transform: translate(-30%, 0);
  }
  50% {
    text-shadow: 0 25px 50px rgba(0, 0, 0, 0.75);
  }
  100% {
    transform: translate(30%, 0);
  }
}

.words span:nth-child(2) {
  animation-delay: 0.5s;
}

.words span:nth-child(3) {
  animation-delay: 1s;
}

.words span:nth-child(4) {
  animation-delay: 1.5s;
}

.words span:nth-child(5) {
  animation-delay: 2s;
}

.words span:nth-child(6) {
  animation-delay: 2.5s;
}

.words span:nth-child(7) {
  animation-delay: 3s;
}
</style>
</head>    
<body>    
<!-- partial:index.partial.html -->    
<div class="words word-1">    
<span>L</span>    
<span>z</span>    
<span>x</span>    
<span>B</span>    
<span>l</span>    
<span>o</span>    
<span>g</span>    
</div>    
<div class="words word-2">    
<span>I</span>    
<span>S</span>    
</div>    
<div class="words word-3">    
<span>C</span>    
<span>O</span>    
<span>O</span>    
<span>L</span>    
</div>    
<!-- partial -->    
</body>    
</html>


版权声明:本文由 LzxBlog 发布,如需转载请注明出处。

本文链接:https://www.liuzhixi.cn/html/273.html

相关文章

简洁的创意家居商城模板html源码

简洁的创意家居商城模板html源码

Outstock是一个最独特的电子商务网上购物商城HTML模板。Outstock将让你的商品看起来更令人印象深刻,对观众的吸引力。响应式设计网格布局,你的网站将...

黑色的分类下拉菜单选择ui特效

黑色的分类下拉菜单选择ui特效

html5基于svg制作制作黑色简洁的带图标分类的下拉菜单,点击选中下拉菜单效果。可用于各大网站分类菜单选择特效。css代码html { &...

React垂直手风琴收缩展示特效

React垂直手风琴收缩展示特效

基于React dom制作简洁黑色的垂直手风琴菜单收缩内容展示,支持滑动和多个菜单收缩展开效果,通过js获取标题和内容,直接修改文本即可使用。下载链接: htt...

3D炫酷元素周期表源码

3D炫酷元素周期表源码

3D 超炫 化学周期表 可改作信息栏 导航图 以及图片墙! 左键旋转 滚轮缩放 右键移动下载链接: https://pan.baidu.com/s/1aHJI-...

多用途服装销售电商HTML模板

多用途服装销售电商HTML模板

一款多用途的服装类电子商务HTML模板。它是非常适合销售时装店,时装,T恤店,服装店铺商城模板。此模板包含:首页、博客页、购物车页、个人中心和ui列表页面。设计...

HTML5 Web 的本地存储方式

HTML5 Web 的本地存储方式

Web 开发中经常会遇到网站需要做一些例如用户备忘录、文章修改自动保存等需求这些功能不需要长期保存,也不需要入数据库,所以有人可能会考虑使用 Cookie 去进...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。