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

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

3年前 (2022-09-26)HTML1118


<!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

相关文章

html5的inputType

html5的inputType

属性值说明email限制用户输入的内容必须是Email类型url限制用户输入的内容必须是url类型date限制用户输入的内容必须是日期类型time限制用户输入的...

web设计互联网公司网站模板

web设计互联网公司网站模板

一款现代化创意的多用途网页设计公司网站HTML模板。使用bootstrap构建,响应式布局。它适用于所有网络代理机构,网页设计公司,网页设计师,数字营销或任何类...

3D炫酷元素周期表源码

3D炫酷元素周期表源码

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

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

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

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

bootstraps响应式多用途商业机构类网站模板

bootstraps响应式多用途商业机构类网站模板

简洁大气的jQuery bootstraps响应式多用途商业机构类网站模板,提供4种首页风格下载链接: https://pan.baidu.com/s/15Nv...

bootstraps响应式健康医疗护理类网站模板

bootstraps响应式健康医疗护理类网站模板

简约大气的jQuery bootstraps响应式健康医疗护理类网站模板下载链接: https://pan.baidu.com/s/11l38ZnQEjcpWQ...

发表评论

访客

看不清,换一张

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