<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<style>
body {
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: rgb(255, 189, 89, .4);
}
img,
svg {
vertical-align: middle;
}
img {
border-style: none;
}
*,
:after,
:before {
box-sizing: border-box;
}
.con {
width: 360px;
height: 356px;
background-size: contain;
position: relative;
}
.con::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 360px;
height: 72px;
background: transparent url(./img/lottery-bg-top.70dc2d9e.png) 50% no-repeat;
background-size: contain;
}
.box {
position: relative;
background: transparent url('img/lottery-bg.42985be1.png') no-repeat;
height: 320px;
width: 320px;
background-size: contain;
margin: 36px auto 0;
}
.box-inner {
width: 100%;
height: 100%;
margin-top: 0;
padding: 31px 29px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
position: relative;
}
.inner-item {
width: 84px;
height: 84px;
margin-right: 3px;
position: relative;
margin-bottom: 3px;
background: #fefdf7;
-webkit-box-shadow: inset 0 0 18px 0 #ffbd59;
box-shadow: inset 0 0 18px 0 #ffbd59;
border-radius: 13px;
}
.inner-item-icon {
width: 100%;
}
.inner-item-draw {
cursor: pointer;
position: relative;
width: 84px;
height: 84px;
background: url('./img/begin-btn.e5f51a09.png') no-repeat;
background-size: 100% 100%;
}
.inner-item-draw::after {
z-index: 99;
content: " ";
position: absolute;
right: -27px;
bottom: -34px;
width: 62px;
height: 63px;
background: url('./img/shake.png') no-repeat;
background-size: contain;
-webkit-animation: shake .5s ease-in-out infinite both;
animation: shake .5s ease-in-out infinite both;
}
@-webkit-keyframes shake {
0% {
-webkit-transform: scale(1);
transform: scale(1)
}
50% {
-webkit-transform: scale(1.1);
transform: scale(1.1)
}
to {
-webkit-transform: scale(1);
transform: scale(1)
}
}
@keyframes shake {
0% {
-webkit-transform: scale(1);
transform: scale(1)
}
50% {
-webkit-transform: scale(1.1);
transform: scale(1.1)
}
to {
-webkit-transform: scale(1);
transform: scale(1)
}
}
</style>
<body>
<div class="con">
<div class="box">
<div class="box-inner">
<div class="inner-item"><img src="./img/61800.png" class="inner-item-icon" alt=""></div>
<div class="inner-item"><img src="./img/61800.png" class="inner-item-icon" alt=""></div>
<div class="inner-item"><img src="./img/61800.png" class="inner-item-icon" alt=""></div>
<div class="inner-item"><img src="./img/61800.png" class="inner-item-icon" alt=""></div>
<div class="inner-item">
<div class="inner-item-draw"></div>
</div>
<div class="inner-item"><img src="./img/61800.png" class="inner-item-icon" alt=""></div>
<div class="inner-item"><img src="./img/61800.png" class="inner-item-icon" alt=""></div>
<div class="inner-item"><img src="./img/61800.png" class="inner-item-icon" alt=""></div>
<div class="inner-item"><img src="./img/61800.png" class="inner-item-icon" alt=""></div>
</div>
</div>
</div>
</body>
<script>
</script>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
前端动画素材在网页开发中扮演着重要角色,能够吸引用户注意、提升用户体验。以下是一些常见的前端动画素材的技术实现方式: CSS 动画:使用 CSS 属性(如@keyframes、transition、transform等)来实现动画效果。这种方式简单易用,适合实现简单的动画效果,如过渡、旋转、缩放等。 JavaScript 动画:通过 JavaScript 操作 DOM 元素的样式属性,实现更复杂、交互性更强的动画效果。常见的库包括 jQuery、Anime.js、GreenSock(GSAP)等,它们提供了丰富的动画函数和效果,使动画开发更加高效。 SVG 动画:使用 SVG(可缩放矢量图形)和 SMIL(同步多媒体集成语言)技术创建矢量图形动画,可以实现复杂的矢量图形动画效果,如路径动画、填充动画等。 Canvas 动画:通过 HTML5 Canvas 元素绘制图形,利用 JavaScript 控制绘制过程,实现高度可定制化的动画效果,适用于需要实时渲染的复杂动画场景。 WebGL 动画:基于 WebGL(Web图形库)的 3D 图形渲染技术,可以实现高性能的复杂动画效果,适合开发需要展示 3D 动画的网页。 React 动画库:如果你在使用 React 框架,可以考虑使用像 React Spring、Framer Motion 等专门为 React 设计的动画库,简化动画开发流程。 CSS 预处理器:使用像 Sass、Less 等 CSS 预处理器可以简化 CSS 编写过程,提高样式代码的可维护性,进而对动画效果的实现有所帮助。 综上所述,前端动画素材的技术实现方式多种多样,开发者可以根据项目需求和个人技术偏好选择合适的方式来实现动画效果。
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![circ](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 8 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/1987959de56f4d83b732f28653e6e1e3_m0_46013789.jpg!1)
枫蜜柚子茶
- 粉丝: 7300
- 资源: 5100
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
- yolo开发教程&案例&相关项目举例概要知识点总结.docx
- java期末大作业学生成绩管理系统源码+数据库+报告文档(95分以上)
- 1996-2023年各省农林牧渔总产值及农业、林业、牧业、渔业总产值数据(无缺失).xlsx
- vue开发教程&案例&相关项目举例说明概要知识点总结.docx
- ExtJs使用示例代码之窗口组件和异步请求
- 18508319_5640_FlowerShop.zip
- 网络安全相关的密码学、网络攻防、安全分析等项目举例与概要.docx
- java期末大作业课程设计学生成绩管理系统源码+数据库+报告(高分项目)
- maven下载、安装、配置与使用教程概要说明与总结.docx
- kubebuilder v4.0.0
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)