CSS

语言:

CSSSCSS

确定

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;

}

.cake_top1_cream10 {

position: absolute;

right: 25px;

height: 15px;

width: 10px;

border-radius: 9px;

background: #5b3f29;

top: 13px;

}

.cake_top1_cream11 {

position: absolute;

right: 35px;

height: 24px;

width: 13px;

border-radius: 9px;

background: #f14380;

}

.cake_top1_cream12 {

position: absolute;

right: 48px;

height: 15px;

width: 12px;

border-radius: 9px;

background: #5b3f29;

top: 10px;

}

.cake_top1_cream13 {

position: absolute;

right: 60px;

height: 26px;

width: 10px;

border-radius: 9px;

background: #f14380;

}

.cake_bottom3_creams {

height: 22px;

border-radius: 5px;

background: #ff7fbf;

position: absolute;

top: -5px;

width: 100%;

}

.cake_bottom3_cream1 {

position: absolute;

left: -3px;

height: 35px;

width: 18px;

border-radius: 9px;

background: #ff7fbf;

}

.cake_bottom3_cream2 {

position: absolute;

left: 15px;

height: 24px;

width: 15px;

border-radius: 9px;

top: 12px;

background: #744c28;

}

.cake_bottom3_cream3 {

position: absolute;

left: 30px;

height: 38px;

width: 10px;

border-radius: 9px;

background: #ff7fbf;

}

.cake_bottom3_cream4 {

position: absolute;

left: 40px;

height: 24px;

width: 15px;

border-radius: 9px;

top: 15px;

background: #744c28;

}

.cake_bottom3_cream5 {

position: absolute;

left: 55px;

height: 30px;

width: 15px;

border-radius: 9px;

background: #ff7fbf;

}

.cake_bottom3_cream6 {

position: absolute;

left: 70px;

height: 20px;

width: 12px;

border-radius: 100px;

top: 17px;

background: #744c28;

}

.cake_bottom3_cream7 {

position: absolute;

left: 82px;

height: 40px;

width: 18px;

border-radius: 100px;

background: #ff7fbf;

}

.cake_bottom3_cream8 {

position: absolute;

left: 100px;

height: 20px;

width: 22px;

border-radius: 100px;

top: 10px;

background: #744c28;

}

.cake_bottom3_cream9 {

position: absolute;

left: 122px;

height: 67px;

width: 24px;

border-radius: 100px;

background: #ff7fbf;

z-index: 3;

}

.cake_bottom3_cream10 {

position: absolute;

left: 146px;

height: 20px;

width: 9px;

border-radius: 100px;

top: 16px;

background: #744c28;

}

.cake_bottom3_cream11 {

position: absolute;

right: 140px;

height: 37px;

width: 15px;

border-radius: 9px;

background: #ff7fbf;

}

.cake_bottom3_cream12 {

position: absolute;

right: 128px;

height: 23px;

width: 12px;

border-radius: 100px;

top: 13px;

background: #5b3f27;

}

.cake_bottom3_cream13 {

position: absolute;

left: 116px;

height: 59px;

width: 36px;

border-radius: 100px;

background: #744c28;

z-index: 2;

top: 15px;

}

.cake_bottom3_cream14 {

position: absolute;

right: 108px;

height: 64px;

width: 20px;

border-radius: 9px;

background: #ff7fbf;

z-index: 3;

}

.cake_bottom3_cream15 {

position: absolute;

right: 102px;

height: 55px;

width: 31px;

border-radius: 100px;

background: #5a4027;

z-index: 2;

top: 15px;

}

.cake_bottom3_cream16 {

position: absolute;

right: 93px;

height: 23px;

width: 15px;

border-radius: 100px;

top: 8px;

background: #5b3f27;

}

.cake_bottom3_cream17 {

position: absolute;

right: 78px;

height: 47px;

width: 15px;

border-radius: 9px;

background: #ff7fbf;

}

.cake_bottom3_cream18 {

position: absolute;

right: 70px;

height: 23px;

width: 8px;

border-radius: 100px;

top: 16px;

background: #5b3f27;

}

.cake_bottom3_cream19 {

position: absolute;

right: 58px;

height: 30px;

width: 12px;

border-radius: 9px;

background: #ff7fbf;

}

.cake_bottom3_cream20 {

position: absolute;

right: 43px;

height: 23px;

width: 15px;

border-radius: 100px;

top: 8px;

background: #5b3f27;

}

.cake_bottom3_cream21 {

position: absolute;

right: 28px;

height: 38px;

width: 15px;

border-radius: 9px;

background: #ff7fbf;

}

.cake_bottom3_cream22 {

position: absolute;

right: 10px;

height: 23px;

width: 18px;

border-radius: 100px;

top: 14px;

background: #5b3f27;

}

.cake_bottom3_cream23 {

position: absolute;

right: -3px;

height: 30px;

width: 13px;

border-radius: 9px;

background: #ff7fbf;

}

.cake_bottom1_creams {

height: 10px;

position: absolute;

bottom: 0px;

width: 100%;

}

.cake_bottom1_cream1 {

position: absolute;

left: 56px;

height: 6px;

width: 14px;

border-radius: 20px 20px 0px 0px;

background: #5a4027;

bottom: 0px;

}

.cake_bottom1_cream2 {

position: absolute;

left: 115px;

height: 5px;

width: 10px;

border-radius: 20px 20px 0px 0px;

background: #5a4027;

bottom: 0px;

}

.cake_bottom1_cream3 {

position: absolute;

right: 33px;

height: 8px;

width: 14px;

border-radius: 20px 20px 0px 0px;

background: #744c29;

bottom: 0px;

}

.cake_bottom1_cream4 {

position: absolute;

right: 58px;

height: 5px;

width: 11px;

border-radius: 20px 20px 0px 0px;

background: #744c29;

bottom: 0px;

}

.gift_top {

-webkit-transition: all 0.6s ease-in-out;

transition: all 0.6s ease-in-out;

o-transition: all 0.6s ease-in-out;

width: 100%;

position: absolute;

top: 0px;

-webkit-transition-delay: 0.6s;

transition-delay: 0.6s;

}

.gift:hover .gift_top {

top: -100px;

-webkit-transition-delay: 0.3s;

transition-delay: 0.3s;

}

.gift_ribbon_left {

-webkit-transition: all 0.3s ease-in-out;

transition: all 0.3s ease-in-out;

o-transition: all 0.3s ease-in-out;

-webkit-transition-delay: 1s;

transition-delay: 1s;

}

.gift_ribbon_center {

-webkit-transition: all 0.3s ease-in-out;

transition: all 0.3s ease-in-out;

o-transition: all 0.3s ease-in-out;

-webkit-transition-delay: 1s;

transition-delay: 1s;

}

.gift:hover .gift_ribbon_left {

height: 32px;

-webkit-transition-delay: 0s;

transition-delay: 0s;

}

.gift:hover .gift_ribbon_center {

-webkit-transition-delay: 0s;

transition-delay: 0s;

height: 102px;

}

.gift_box_bottom_top {

-webkit-transition-delay: 1.1s;

transition-delay: 1.1s;

}

.gift:hover .gift_box_bottom_top {

height: 0px;

opacity: 0;

-webkit-transition: all 0.3s ease-in-out;

transition: all 0.3s ease-in-out;

-webkit-transition-delay: 0.4s;

transition-delay: 0.4s;

o-transition: all 0.3s ease-in-out;

}

.giftcard {

border-radius: 5px;

background: #fff;

box-shadow: 0px 1px 0px 1px #fee4c0;

padding: 10px;

width: 80px;

font-size: 15px;

font-family: 'Source Sans Pro', sans-serif;

color: #ff3f48;

left: 0px;

top: 100px;

right: 0px;

margin: 0px auto;

position: absolute;

line-height: 26px;

z-index: -1;

text-align: center;

-webkit-transition: all 0.6s ease-in-out;

transition: all 0.6s ease-in-out;

-webkit-transition-delay: 0.5s;

transition-delay: 0.5s;

o-transition: all 0.6s ease-in-out;

}

.gift:hover .giftcard {

top: -10px;

}

.one_number {

position: absolute;

left: 147px;

top: 25px;

width: 9px;

}

.one_number:after {

content: "";

height: 5px;

width: 0px;

position: absolute;

background: #c6c6c6;

top: 0px;

left: 0px;

}

.one_number:before {

content: "";

height: 25px;

width: 5px;

position: absolute;

background: #c6c6c6;

top: 0px;

right: 1px;

}

.seven_number {

position: absolute;

right: 147px;

top: 25px;

width: 14px;

}

.seven_number:after {

content: "";

/*width: 20px;*/

height: 5px;

position: absolute;

background: #c6c6c6;

top: 0px;

left: -12px;

}

.seven_number:before {

content: "";

height: 27px;

width: 5px;

position: absolute;

background: #c6c6c6;

top: 0px;

right: 3px;

}

.seven_flame {

height: 12px;

width: 6px;

border-radius: 100%;

background: #ffd215;

position: absolute;

right: 3px;

-webkit-animation: flame 0.5s infinite linear;

animation: flame 0.5s infinite linear;

-moz-animation: flame 0.5s infinite linear;

bottom: 2px;

}

.one_flame {

height: 12px;

width: 6px;

border-radius: 100%;

background: #ffd215;

position: absolute;

right: 1px;

bottom: 2px;

-webkit-animation: flame 0.5s infinite linear;

animation: flame 0.5s infinite linear;

-moz-animation: flame 0.5s infinite linear;

}

@-webkit-keyframes flame {

0% {

height: 12px;

background: #fdd214;

}

50% {

height: 14px;

background: #ffc617;

}

100% {

height: 12px;

background: #fdd214;

}

}

@keyframes flame {

0% {

height: 12px;

background: #fdd214;

}

50% {

height: 14px;

background: #ffc617;

}

100% {

height: 12px;

background: #fdd214;

}

}

@-moz-keyframes flame {

0% {

height: 12px;

background: #fdd214;

}

50% {

height: 14px;

background: #ffc617;

}

100% {

height: 12px;

background: #fdd214;

}

}

html中的开启礼盒的代码,CSS3 蛋糕+生日礼盒打开动效相关推荐

  1. eclipse/myeclipse中如何开启断言调试代码

    转载:http://blog.csdn.net/emperorjade/article/details/32140763       assertion(断言)在软件开发中是一种常用的调试方式,很多开 ...

  2. html中制作烟花的效果代码,css3+js实现烟花绽放的动画效果(代码示例)

    本篇文章给大家介绍通过js+css3的transforms属性和keyframes属性来实现烟花绽放的动画效果的方法.有一定的参考价值,有需要的朋友可以参考一下,希望对你们有所帮助. 首先我们来看看效 ...

  3. html字体左右摇动代码,CSS3 左右摇摆的文字动效

    CSS 语言: CSSSCSS 确定 body { background: indianred; } .text { font-family: "Alfa Slab One", c ...

  4. html圆圈中打钩代码,CSS3点击按钮圆形进度打钩效果的实现代码

    文章目录 八.CSS3点击按钮圆形进度打钩效果8.1 图片预览8.2 index.html代码8.3 style.css代码 八.CSS3点击按钮圆形进度打钩效果 8.1 图片预览 8.2 index ...

  5. python关闭线程daemon_python中threading开启关闭线程操作

    在python中启动和关闭线程: 首先导入threading import threading 然后定义一个方法 def serial_read(): ... ... 然后定义线程,target指向要 ...

  6. Wordpress模板主题中functions.php常用功能代码与常用插件[ 后台篇](持续收集整理)

    用Wordpress建站的初学者一定会需要用到的Wordpress模板主题中functions.php常用功能代码与常用插件.慢慢持续收集整理....... 目录 一.Wordpress模板主题中fu ...

  7. word自动消除html标签,如何清除网页中不必要的HTML代码?

    如何清除网页中不必要的HTML代码? 虽然Dreamweaver不会为你的网页任意添加不必要的HTML代码,但有时候因为网页过于复杂,或者你在网页上过度频繁的移动图片,文本或者其它对象,这样,一些不必 ...

  8. idea中使用Thymeleaf语法编写代码不提示解决方法

    idea中使用Thymeleaf语法编写代码不提示解决方法 1.查看file-setting–pligins中thymeleaf是否开启 2.需要在pom工程中引入thymeleaf启动器坐标 < ...

  9. 机械革命极光Pro电脑开启出现英文代码无法启动怎么办?

    机械革命极光Pro电脑开启出现英文代码无法启动怎么办?有的小伙伴在使用机械革命极光Pro电脑的时候,正常开启电脑却无法进入到桌面中,而是显示一些英文错误提示.遇到这个问题是我们的系统故障了,可以通过U ...

最新文章

  1. MongoDB使用小结:一些常用操作分享
  2. #10172. 「一本通 5.4 练习 1」涂抹果酱 题解
  3. jupyter notebook切换到其他配置好的conda虚拟环境
  4. CF722D. Generating Sets[贪心 STL]
  5. java反序列化的原理,java – 反序列化的工作原理?
  6. java 字节流写入_Java之基于字节流文件的写入和读取
  7. 感觉自己应该重新读一次Javascript
  8. sublime text c++ mac 怎么用_Mac 地址是什么,怎么用
  9. linux定时任务打印日志,Centos7(linux)使用crond服务定时执行js脚本并将脚本的输出内容记录日志文件的简单应用...
  10. 人体姿态估计之CPN中文文献翻译
  11. 用python开发的云监控平台_edwin报警和监控平台开源了(python源码)
  12. ARM Aarch32 中 A32 和 T32 的汇编编程的例子(call return stack 结构相关的指令)
  13. fnd_global和fnd_profile 的区别
  14. PX4中的二阶巴特沃斯低通滤波
  15. 洛谷P1719 最大加权矩形
  16. 如何设计安全可靠的开放接口---之Token
  17. MATLAB怎么解方程解,怎么用Matlab解方程?
  18. ndk开发流程,9次Android面试经验总结,已拿offer入职
  19. Android 在线下载更新App 下载完成安装APK(兼容Android7.0)
  20. 安装Anaconda3以及如何使用Jupyter

热门文章

  1. 数字孪生钢厂开发可视化系统-解决方案
  2. 谷歌五笔输入法电脑版_新手学拼音还是学五笔打字(看完你就明白)
  3. Android辅助功能(Accessibility)简介
  4. 利用积分区域的对称性计算重积分
  5. SDNU__1082.观妹种菊
  6. 均匀分布的期望与方差计算公式
  7. Kafka入门教程(一)
  8. 正则表达式去掉以 开头和结尾的
  9. Android 验证码输入框的实现
  10. IT过来人的10点经验谈