<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>卡券</title>
</head>
<style>
:root {
--bg: #222;
}
body {
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 50px 0;
background-color: #222;
}
.circle01 {
width: 300px;
height: 100px;
position: relative;
/* background-color:#ff6810 ; */
/* background:radial-gradient(circle at 150px 100px, transparent 10px, #ff6810 0) top left; */
background: radial-gradient(
circle at 150px 100px,
transparent 10px,
#ff6810 0
)
top left/300px 100% no-repeat;
/* -webkit-mask: radial-gradient(circle at 150px 100px, transparent 10px, #ff6810 0) top left/300px 100% no-repeat; */
border-radius: 10px;
}
.mb20 {
margin-bottom: 20px;
}
.circle01_top {
width: 300px;
height: 100px;
position: relative;
border-radius: 10px;
background: radial-gradient(
circle at 150px 0,
transparent 10px,
#ff6810 0
)
top left/300px 100% no-repeat;
}
.circle01_left {
width: 300px;
height: 100px;
position: relative;
border-radius: 10px;
background: radial-gradient(circle at 0 50px, transparent 10px, #ff6810 0)
top left;
}
.circle01_right {
width: 300px;
height: 100px;
position: relative;
border-radius: 10px;
background: radial-gradient(
circle at 300px 50px,
transparent 10px,
#ff6810 0
)
top left;
}
.circle01_d1 {
width: 300px;
height: 100px;
position: relative;
border-radius: 10px;
background: radial-gradient(circle at 10px, transparent 10px, #ff6810 0) -10px;
}
.circle01_d2 {
width: 300px;
height: 100px;
position: relative;
border-radius: 10px;
overflow: hidden;
background: radial-gradient(circle at 10px, transparent 5px, #ff6810 0px);
/* background: radial-gradient(circle at 10px, transparent 10px, #ff6810 0) top left/84px; */
/* background: radial-gradient(circle at 10px, transparent 10px, #ff6810 0) top left/21px; */
}
.circle01_d3 {
width: 300px;
height: 100px;
position: relative;
border-radius: 10px;
background: radial-gradient(circle at 10px, transparent 5px, #ff6810 0)
top left/300px 20px;
}
.circle01_d4 {
width: 300px;
height: 100px;
position: relative;
border-radius: 10px;
background: radial-gradient(
circle at 150px 0,
transparent 10px,
#ff6810 0
);
}
.circle01_d5 {
width: 300px;
height: 100px;
border-radius: 10px;
background: radial-gradient(circle at 0 0, transparent 10px, red 0),
radial-gradient(circle at right 0, transparent 10px, red 0),
radial-gradient(circle at 0 100%, transparent 10px, red 0),
radial-gradient(circle at right 100%, transparent 10px, red 0);
/* -webkit-mask-composite: source-in;
background: linear-gradient(45deg, #44C9A1, #48e5a4); */
}
.circle02 {
width: 300px;
height: 100px;
border-radius: 10px;
position: relative;
background: radial-gradient(
circle at right top,
transparent 10px,
#ff6810 0
)
top left / 60px 51% no-repeat,
radial-gradient(circle at right bottom, transparent 10px, #ff6810 0)
bottom left / 60px 51% no-repeat,
radial-gradient(circle at left top, transparent 10px, #eeeeee 0) top
right / 240px 51% no-repeat,
radial-gradient(circle at left bottom, transparent 10px, #eeeeee 0)
bottom right / 240px 51% no-repeat;
filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
}
.circle02::after {
content: "";
height: 80px;
border: 1px dashed #fff;
position: absolute;
left: 60px;
top: 0;
bottom: 0;
margin: auto;
}
.circle03 {
border-radius: 10px;
width: 300px;
height: 100px;
position: relative;
background: radial-gradient(
circle at right bottom,
transparent 10px,
#ff6810 0
)
top right / 50% 60px no-repeat,
radial-gradient(circle at left bottom, transparent 10px, #ff6810 0) top
left / 50% 60px no-repeat,
radial-gradient(circle at right top, transparent 10px, #eeeeee 0) bottom
right / 50% 40px no-repeat,
radial-gradient(circle at left top, transparent 10px, #eeeeee 0) bottom
left / 50% 40px no-repeat;
filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
}
.circle03::after {
content: "";
width: 280px;
border: 1px dashed #fff;
position: absolute;
left: 0;
right: 0;
top: 60px;
margin: auto;
}
.circle04 {
width: 300px;
height: 100px;
position: relative;
background: #ff6810;
margin-top: 4px;
}
.circle04::after {
content: "";
position: absolute;
height: 2px;
width: 100%;
left: 0;
top: -2px;
background-image: linear-gradient(
to right,
#ff6810 2px,
transparent 2px,
transparent
),
radial-gradient(4px circle at 4px 0px, transparent 2px, #ff6810 2px);
background-size: 6px 2px;
}
.circle05 {
width: 300px;
height: 100px;
position: relative;
background: #ff6810;
}
.circle05::after {
content: "";
position: absolute;
height: 4px;
width: 100%;
left: 0;
bottom: -4px;
background-image: linear-gradient(
to right,
#ff6810 4px,
transparent 4px,
transparent
),
radial-gradient(8px circle at 8px 4px, transparent 4px, #ff6810 4px);
background-size: 12px 4px;
}
.circle06 {
width: 300px;
height: 100px;
position: relative;
background: #ff6810;
margin-left: 4px;
}
.circle06::after {
content: "";
position: absolute;
height: 100%;
width: 2px;
top: 0;
left: -2px;
background-image: linear-gradient(
to bottom,
#ff6810 2px,
transparent 2px,
transparent
),
radial-gradient(4px circle at 0px 4px, transparent 2px, #ff6810 2px);
background-size: 2px 6px;
}
.circle07 {
width: 300px;
height: 100px;
position: relative;
background: #ff6810;
margin-right: 12px;
}
.circle07::after {
content: "";
position: absolute;
height: 100%;
width: 6px;
top: 0;
right: -6px;
background-image: linear-gradient(
to bottom,
#ff6810 6px,
transparent 6px,
transparent
),
radial-gradient(12px circle at 6px 12px, transparent 6px, #ff6810 6px);
background-size: 6px 18px;
}
.circle08 {
width: 300px;
height: 100px;
position: relative;
background: radial-gradient(
circle at right top,
transparent 10px,
#ff6810 0
)
top left / 60px 51% no-repeat,
radial-gradient(circle at right bottom, transparent 10px, #ff6810 0)
bottom left / 60px 51% no-repeat,
radial-gradient(circle at left top, transparent 10px, #eeeeee 0) 60px 0/230px
51% no-repeat,
radial-gradient(circle at left bottom, transparent 10px, #eeeeee 0) 60px
50px /230px 51% no-repeat,
radial-gradient(circle at 10px 50px, transparent 10px, #eeeeee 0) 290px
0/10px 100px no-repeat;
filter: drop-shadow(2px 2px 2px rgb
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
前端动画素材在网页开发中扮演着重要角色,能够吸引用户注意、提升用户体验。以下是一些常见的前端动画素材的技术实现方式: 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 (10个子文件)
卡券相关
index5.htm 3KB
clip-卡券.htm 4KB
index2.html 18KB
index6.htm 3KB
index7.htm 4KB
卡券2.htm 2KB
index.html 5KB
index3.html 6KB
index4.htm 3KB
折角卡片.htm 2KB
共 10 条
- 1
资源评论
枫蜜柚子茶
- 粉丝: 6793
- 资源: 5104
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功