<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS3 蛋糕+生日礼盒打开动画效果</title>
<style>
body {
background: #ffebd0;
}
.gift {
position: absolute;
bottom: 0px;
width: 150px;
left: 172px;
z-index: 12;
height: 180px;
}
.wrap {
height: 300px;
width: 800px;
margin: 0px auto;
position: relative;
}
.ribbon_right {
width: 45px;
height: 45px;
border-radius: 100% 100% 100% 0px;
box-shadow: 0px 0px 0px 10px #1495f1 inset;
position: absolute;
right: 30px;
}
.ribbon_left {
width: 45px;
height: 45px;
border-radius: 100% 100% 0px 100%;
box-shadow: 0px 0px 0px 10px #1aa8fc inset;
position: absolute;
left: 30px;
}
.gift_box_top {
height: 28px;
top: 45px;
position: absolute;
width: 150px;
background: #ff7d6d;
box-shadow: -75px 0px 0px #ff6259 inset;
}
.gift_ribbon_center {
width: 2px;
bottom: 0px;
position: absolute;
right: 0;
left: 0;
margin: 0px auto;
background: #1cadfe;
height: 140px;
border-right: 6px solid #28c9ff;
border-left: 6px solid #28c9ff;
z-index: 10;
}
.gift_box_bottom {
background: #ff8168;
bottom: 0px;
height: 102px;
overflow: hidden;
right: 7px;
position: absolute;
width: 136px;
box-shadow: -70px 0px 0px #fe6d68 inset;
}
.gift_box_bottom_top {
height: 5px;
width: 136px;
right: 7px;
position: absolute;
bottom: 102px;
background: #dd4b4c;
}
.gift_ribbon_left {
height: 55px;
width: 15px;
left: 15px;
position: absolute;
background: #28c9ff;
top: 40px;
z-index: 11;
}
.gift_ribbon_left:after {
border-width: 9px;
border-style: solid;
border-color: transparent;
border-bottom-color: #ff8168;
z-index: 12;
position: absolute;
content: "";
bottom: 0px;
}
.gift_box_bottom_ribbon {
position: absolute;
right: -25px;
height: 12px;
width: 110px;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
background: #ff4149;
}
#ribbon1 {
top: -15px;
}
#ribbon2 {
top: 20px;
}
#ribbon3 {
top: 55px;
}
#ribbon4 {
top: 90px;
}
.line {
height: 25px;
width: 100%;
background: #fff;
bottom: -25px;
position: absolute;
}
.cake {
position: absolute;
bottom: 0px;
width: 330px;
right: 172px;
height: 240px;
}
.cake_bottom {
position: absolute;
width: 330px;
height: 5px;
bottom: 0px;
background: #9dc5c4;
border-top: 2px solid #e6e7e9;
}
.cake_bottom2 {
position: absolute;
width: 320px;
bottom: 7px;
background: #cd7a1c;
height: 22px;
right: 5px;
border-radius: 3px 3px 0px 0px;
left: 5px;
box-shadow: -160px 0px 0px #ad631c inset;
}
.cake_bottom3 {
box-shadow: 0px -3px 0px #fddbea, -155px 0px 0px #5a4027 inset;
height: 52px;
border-top: 5px solid #ff7ebe;
background: #744c28;
position: absolute;
width: 310px;
bottom: 29px;
right: 10px;
border-radius: 5px 5px 0px 0px;
left: 10px;
}
.cake_top1 {
box-shadow: -115px 0px 0px #ff9201 inset;
height: 46px;
background: #ffb009;
position: absolute;
width: 230px;
bottom: 89px;
right: 50px;
border-radius: 5px 5px 0px 0px;
left: 50px;
border-bottom: 3px solid #c14500;
}
.cake_top2 {
box-shadow: -70px 0px 0px #5b3f29 inset;
height: 52px;
background: #744c28;
position: absolute;
width: 140px;
bottom: 138px;
border-radius: 5px 5px 0px 0px;
left: 0px;
right: 0px;
margin: 0px auto;
}
.cake_line {
bottom: 0px;
height: 30px;
width: 5px;
position: absolute;
}
#cake_line1 {
left: 2px;
background: #ff9101;
}
#cake_line2 {
left: 12px;
background: #ff9101;
}
#cake_line3 {
left: 22px;
background: #ff9101;
}
#cake_line4 {
left: 32px;
background: #ff9101;
}
#cake_line5 {
left: 42px;
background: #ff9101;
}
#cake_line6 {
left: 52px;
background: #ff9101;
}
#cake_line7 {
left: 62px;
background: #ff9101;
}
#cake_line8 {
left: 72px;
background: #ff9101;
}
#cake_line9 {
left: 82px;
background: #ff9101;
}
#cake_line10 {
left: 92px;
background: #ff9101;
}
#cake_line11 {
left: 102px;
background: #ff9101;
}
#cake_line12 {
left: 112px;
background: #ff9101;
}
#cake_line13 {
right: 3px;
background: #ff7000;
}
#cake_line14 {
right: 13px;
background: #ff7000;
}
#cake_line15 {
right: 23px;
background: #ff7000;
}
#cake_line16 {
right: 33px;
background: #ff7000;
}
#cake_line17 {
right: 43px;
background: #ff7000;
}
#cake_line18 {
right: 53px;
background: #ff7000;
}
#cake_line19 {
right: 63px;
background: #ff7000;
}
#cake_line20 {
right: 73px;
background: #ff7000;
}
#cake_line21 {
right: 83px;
background: #ff7000;
}
#cake_line22 {
right: 93px;
background: #ff7000;
}
#cake_line23 {
right: 103px;
background: #ff7000;
}
#cake_line24 {
right: 113px;
background: #ff7000;
}
.cherry {
width: 15px;
top: -15px;
height: 15px;
border-radius: 100%;
background: #fff;
position: absolute;
box-shadow: -2px -1px 0px 6px #ff4d59 inset;
}
#cherry1 {
left: 20px;
}
#cherry2 {
left: 64px;
}
#cherry3 {
left: 108px;
}
#cherry4 {
right: 64px;
}
#cherry5 {
right: 20px;
}
.cake_circle {
height: 56px;
width: 56px;
border-radius: 100%;
box-shadow: 0px 0px 0px 12px #ffebc8 inset;
top: -30px;
z-index: 100;
position: absolute;
}
.circles {
position: absolute;
height: 30px;
width: 100%;
overflow: hidden;
top: 0px;
}
#circle1 {
left: -1px;
}
#circle2 {
left: 43px;
}
#circle3 {
left: 87px;
}
#circle4 {
right: 43px;
}
#circle5 {
right: -1px;
}
.cake_top1_creams {
height: 18px;
border-radius: 5px;
background: #f24282;
position: absolute;
top: 0px;
width: 100%;
}
.cake_top1_cream1 {
position: absolute;
left: -3px;
height: 25px;
width: 15px;
border-radius: 9px;
background: #f14380;
}
.cake_top1_cream2 {
position: absolute;
left: 12px;
height: 25px;
width: 10px;
border-radius: 9px;
background: #744c28;
top: 10px;
}
.cake_top1_cream3 {
position: absolute;
left: 22px;
height: 23px;
width: 10px;
border-radius: 9px;
background: #f14380;
}
.cake_top1_cream4 {
position: absolute;
left: 32px;
height: 25px;
width: 12px;
border-radius: 9px;
background: #744c28;
top: 13px;
}
.cake_top1_cream5 {
position: absolute;
left: 44px;
height: 30px;
width: 13px;
border-radius: 9px;
background: #f14380;
}
.cake_top1_cream6 {
position: absolute;
left: 57px;
height: 25px;
width: 13px;
border-radius: 9px;
background: #744c28;
top: 9px;
}
.cake_top1_cream7 {
position: absolute;
right: -3px;
height: 22px;
width: 8px;
border-radius: 9px;
background: #f14380;
}
.cake_top1_cream8 {
position: absolute;
right: 5px;
height: 25px;
width: 10px;
border-radius: 9px;
background: #5b3f29;
top: 8px;
}
.cake_top1_cream9 {
position: absolute;
right: 15px;
height: 31px;
width: 10px;
border-radius: 9px;
background: #f14380;
}
.ca
CSS3 实现的蛋糕+生日礼盒打开动画效果源码.zip
版权申诉
100 浏览量
2022-10-31
01:48:35
上传
评论
收藏 4KB ZIP 举报
毕业_设计
- 粉丝: 1935
- 资源: 1万+
最新资源
- 基于matlab实现字符识别的参考程序,用所用的字体识别率挺高,部分手写的也能识别,但是还不能识别扭曲和倾斜的字符 .rar
- 基于matlab实现指纹识别系统 包括数据库导入、图像选择识别、帮助功能、识别图像可视、gabor滤波可视,实现界面操作.rar
- 基于matlab实现指纹识别,利用gabor滤波器,提取指纹特征,只能呢读取bmp图像.rar
- 基于matlab实现于数字图像相关方法中散斑质量评价
- 基于matlab实现遗传算法和佳点集遗传算法的基本思想和不同点,用遗传算法测试一标准函数 佳点集算法测试一标准函数
- tensorflow-gpu-2.5.1-cp38-cp38-manylinux2010-x86-64.whl
- tensorflow-gpu-2.5.0-cp39-cp39-manylinux2010-x86-64.whl
- tensorflow-gpu-2.5.2-cp39-cp39-manylinux2010-x86-64.whl
- 内含方正小标宋简体、仿宋-Gb2312、黑体、楷体、宋体,五个公文常用字体
- 记忆卡牌游戏源码及可运行文件
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈