前端手册-实现挂坠灯笼效果

news/2024/7/10 0:50:13 标签: 前端, html, js, vue
Unity3D特效百例案例项目实战源码Android-Unity实战问题汇总
游戏脚本-辅助自动化Android控件全解手册再战Android系列
Scratch编程案例软考全系列Unity3D学习专栏
蓝桥系列ChatGPT和AIGC

👉关于作者

专注于Android/Unity和各种游戏开发技巧,以及各种资源分享(网站、工具、素材、源码、游戏等)
有什么需要欢迎底部卡片私我,获取更多支持,交流让学习不再孤单

芝麻粒儿-空名先生

👉实践过程

在这里插入图片描述

html"><!DOCTYPE html>
<html>
<style>
@media screen and (max-width: 600px) {
  body > * {
    font-size: 1.5em;
  }
}
#sect {
  width: 60vw;
  height: 20vh;
  padding: 1em;
  text-align: center;
  vertical-align: middle;
  display: block;
  position: relative;
  perspective: 600px;
}
#sect ul {
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 20%;
  transition: all 1.6666666667s;
  transform-style: preserve-3d;
  transform: translateZ(-40vmax) translateX(-20vw) rotateY(0deg);
  position: absolute;
}
#toggle:checked + #sect ul {
  transform: translateZ(-20em) translateX(0vw) rotateY(50deg);
}
#sect li {
  display: inline-block;
  position: absolute;
  font-size: 3em;
  margin-left: -5em;
  transition: all 1s;
  opacity: 1;
  color: #FF0000;
  transform-origin: center -100vmax;
  -webkit-animation: pendulum ease-in-out infinite alternate 5s;
          animation: pendulum ease-in-out infinite alternate 5s;
}
#sect li:before {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 1px;
  box-shadow: 0 0 0 0.01em #00FF00;
  height: 25em;
  left: 50%;
  background-color: #00FF00;
}
#sect li:nth-of-type(0) {
  left: 0em;
  -webkit-animation-delay: -0s;
          animation-delay: -0s;
}
#sect li:nth-of-type(1) {
  left: 2.5em;
  -webkit-animation-delay: -0.1s;
          animation-delay: -0.1s;
}
#sect li:nth-of-type(2) {
  left: 5em;
  -webkit-animation-delay: -0.2s;
          animation-delay: -0.2s;
}
#sect li:nth-of-type(3) {
  left: 7.5em;
  -webkit-animation-delay: -0.3s;
          animation-delay: -0.3s;
}
#sect li:nth-of-type(4) {
  left: 10em;
  -webkit-animation-delay: -0.4s;
          animation-delay: -0.4s;
}
#sect li:nth-of-type(5) {
  left: 12.5em;
  -webkit-animation-delay: -0.5s;
          animation-delay: -0.5s;
}
#sect li:nth-of-type(6) {
  left: 15em;
  -webkit-animation-delay: -0.6s;
          animation-delay: -0.6s;
}
#sect li:nth-of-type(7) {
  left: 17.5em;
  -webkit-animation-delay: -0.7s;
          animation-delay: -0.7s;
}
#sect li:nth-of-type(8) {
  left: 20em;
  -webkit-animation-delay: -0.8s;
          animation-delay: -0.8s;
}
#sect li:nth-of-type(9) {
  left: 22.5em;
  -webkit-animation-delay: -0.9s;
          animation-delay: -0.9s;
}
#sect li:nth-of-type(10) {
  left: 25em;
  -webkit-animation-delay: -1s;
          animation-delay: -1s;
}
#sect li:nth-of-type(11) {
  left: 27.5em;
  -webkit-animation-delay: -1.1s;
          animation-delay: -1.1s;
}

@-webkit-keyframes pendulum {
  from {
    transform: translateY(10vh) rotateX(-4deg);
  }
  to {
    transform: translateY(15vh) rotateX(5deg);
  }
}

@keyframes pendulum {
  from {
    transform: translateY(10vh) rotateX(-4deg);
  }
  to {
    transform: translateY(15vh) rotateX(5deg);
  }
}
    </style>
<input type="checkbox" id="toggle" checked />
<section id="sect" width:20% height:20%>
	<ul>
		<li>芝麻</li>
		<li>粒儿</li>
	</ul>
</section>
</body>
</html>

👉其他

📢作者:小空和小芝中的小空
📢转载说明-务必注明来源:https://zhima.blog.csdn.net/
📢这位道友请留步☁️,我观你气度不凡,谈吐间隐隐有王者霸气💚,日后定有一番大作为📝!!!旁边有点赞👍收藏🌟今日传你,点了吧,未来你成功☀️,我分文不取,若不成功⚡️,也好回来找我。

温馨提示点击下方卡片获取更多意想不到的资源。
空名先生


http://www.niftyadmin.cn/n/5417703.html

相关文章

问题:前端获取long型数值精度丢失,后面几位都为0

文章目录 问题分析解决 问题 通过接口获取到的数据和 Postman 获取到的数据不一样&#xff0c;仔细看 data 的第17位之后 分析 该字段类型是long类型问题&#xff1a;前端接收到数据后&#xff0c;发现精度丢失&#xff0c;当返回的结果超过17位的时候&#xff0c;后面的全…

洛谷 1019.单词接龙

这道题用的搜索&#xff0c;也就是DFS&#xff0c;但是有一点难度&#xff0c;虽然说是对于搜索的知识点的考察&#xff0c;但是对于编程者的编程模拟能力和分析能力会有比较大的要求。 思路&#xff1a;首先我们审题&#xff0c;会注意到以下几点&#xff1a; 1.单词后面相同…

【Linux】CentOS网络故障排查大揭秘: 实战攻略解读

&#x1f34e;个人博客&#xff1a;个人主页 &#x1f3c6;个人专栏&#xff1a;Linux ⛳️ 功不唐捐&#xff0c;玉汝于成 目录 前言 正文 检查网络连接状态&#xff1a; 检查网络配置&#xff1a; 重启网络服务&#xff1a; 检查防火墙设置&#xff1a; 查看日志文…

指数移动平均(EMA)

文章目录 前言EMA的定义在深度学习中的应用PyTorch代码实现yolov5中模型的EMA实现 参考 前言 在深度学习中&#xff0c;经常会使用EMA&#xff08;指数移动平均&#xff09;这个方法对模型的参数做平均&#xff0c;以求提高测试指标并增加模型鲁棒。实际上&#xff0c;_EMA可以…

linux、windows 动态库与静态库的实现

动态库与静态库的实现 在使用keil的时候遇到这样一个事情&#xff0c;我调用了一个函数&#xff0c;只有函数声明&#xff0c;但是我想查看函数的实现却不行&#xff0c;为什么会这样&#xff0c;这不来了嘛, 我们在使用printf函数等&#xff0c;都是加上头文件直接调用&…

Java实现从本地读取CSV文件数据

一、前言 最近项目中需要实现这样一个功能&#xff0c;就是从本地读取CSV文件&#xff0c;并以指定行作为标题行&#xff0c;指定行开始作为数据读取行&#xff0c;读取数据并返回给前端&#xff0c;下面具体说下是如何通过java实现。 二、如何实现&#xff1f; 1.引入相关mav…

监控易解读(3):统一运维,产品架构应用层详解

监控易作为一款领先的一体化运维管理平台&#xff0c;其应用层是整个产品架构中最为核心和关键的部分。这一层汇聚了众多功能模块&#xff0c;旨在为企业提供全面、细致、高效的运维管理服务。以下是对监控易应用层各功能模块的详细解读。 监控易采用多TS架构&#xff0c;集中统…

串口移位寄存器

USART框图 右上角这一块&#xff0c;是串口的数据寄存器&#xff0c;发送或接收的字节数据就寄存在这个地方。这里有两个寄存器&#xff0c;一个数TDR&#xff08;Transmit DR&#xff09;发送数据寄存器&#xff0c;另一个是RDR&#xff08;Receive&#xff09;接收数据寄存器…