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

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

3年前 (2022-09-26)HTML1044


<!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限制用户输入的...

产品分类图片列表tab切换特效

产品分类图片列表tab切换特效

jQuery制作简洁的产品分类图片列表tab布局,带标题和分类菜单的图文列表选项卡切换特效。...

拟物风图标悬停动画特效

拟物风图标悬停动画特效

新拟态风格的--简洁的快捷图标导航ui布局,鼠标悬停图标按钮动画特效。下载链接: https://pan.baidu.com/s/1GfmxV1kSCRmeNk...

动态罗盘时钟

动态罗盘时钟

原生抖音罗盘时钟代码分享 罗盘文字时钟软件非常火 文字时钟本站给大家分享这款就是通过原生j来s实现的文字时钟源码,有喜欢的朋友可以下载哦下载链接: https:...

网页坦克大战

网页坦克大战

经典90版html5坦克大战游戏+源码。操作说明:玩家1:wasd上左下右,space射击;玩家2:方向键,enter射击。n下一关,p上一关。下载链接: ht...

蓝色系的个人简历HTML5模板

蓝色系的个人简历HTML5模板

一个简单、现代、富有创意和响应式的个人简历介绍HTML5单页模板。这个模板可用于创意设计师,摄影师,开发人员,或任何职业。它是完全定制的,你可以很容易地改变背景...

发表评论

访客

看不清,换一张

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