单个div+css布局实现蛋糕蜡烛效果代码
代码语言:html
所属分类:布局界面
代码描述:单个div+css布局实现蛋糕蜡烛效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> div, div:before, div:after { display: block; content: ""; position: absolute; box-sizing: border-box; } body { height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center; background: radial-gradient(#e6e6e6 40%, #facbcd); } div.celebrate { width: 100vmin; height: 80vmin; position: relative; background: radial-gradient(ellipse, #F99F7C 1vmin, transparent 1vmin) 49.25vmin 4.75vmin/4vmin 10vmin no-repeat, radial-gradient(ellipse, #FCE391 2vmin, transparent 1vmin) 49.25vmin 3vmin/4vmin 10vmin no-repeat, radial-gradient(ellipse, #FACBC3 5vmin, transparent 1vmin) 39vmin 34vmin/10vmin 10vmin no-repeat, linear-gradient(#FACBC3, 15vmin, transparent 1vmin) 44vmin 35vmin/14vmin 9vmin no-repeat, radial-gradient(ellipse, #FACBC3 5vmin, transparent 1vmin) 52vmin 34vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #fef4f2 5vmin, transparent 1vmin) 55vmin 34vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #FACBC3 5vmin, transparent 1vmin) 58vmin 34vmin/10vmin 10vmin no-repeat, linear-gradient(#f6a294 5vmin, transparent 1vmin) 55vmin 39vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #f6a294 5vmin, transparent 1vmin) 60vmin 34vmin/10vmin 10vmin no-repeat, linear-gradient(#fef4f2 5vmin, transparent 1vmin) 40vmin 39vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #fef4f2 5vmin, transparent 1vmin) 36vmin 34vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #FACBC3 5vmin, transparent 1vmin) 34vmin 34vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #FACBC3 5vmin, transparent 1vmin) 49vmin 28vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #FACBC3 5vmin, transparent 1vmin) 43.5vmin 28vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #FACBC3 5vmin, transparent 1vmin) 46vmin 27vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #fef4f2 5vmin, transparent 1vmin) 51vmin 28vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #f6a294 5vmin, transparent 1vmin) 55vmin 28vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #fef4f2 5vmin, transparent 1vmin) 42vmin 28vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse, #FACBC3 5vmin, transparent 1vmin) 39vmin 28vmin/10vmin 10vmin no-repeat, linear-gradient(45deg, transparent 3.25vmin, #fce2e3 3.5vmin, #fce2e3 5.5vmin, transparent 1vmin) 49vmin 9vmin/5vmin 20vmin no-repeat, linear-gradient(45deg, transparent 3.25vmin, #fce2e3 3.5vmin, #fce2e3 5.5vmin, transparent 1vmin) 49vmin 3vmin/5vmin 20vmin no-repeat, linear-gradient(90deg, #EC4045, 2.5vmin, #ea292e 2.5vmin, #ea292e 5vmin, transparent 1vmin) 49vmin 15vmin/5vmin 15vmin no-repeat, linear-gradient(#020202 5vmin, transparent 1vmin) 51vmin 12vmin/0.5vmin 10vmin no-repeat, linear-gradient(15deg, #66a9c2 1vmin, transparent 0.5vmin) 69.5vmin 47.25vmin/3vmin 1.5vmin no-repeat, linear-gradient(291deg, transparent 7.75vmin, #66a9c2 8vmin, #66a9c2 9.5vmin, transparent 9.75vmin) 60.5vmin 48.5vmin/12vmin 22.25vmin no-repeat, linear-gradient(288deg, transparent 7.75vmin, #66a9c2 8vmin, #66a9c2 9.5vmin, transparent 9.75vmin) 60.25vmin 48.5vmin/12vmin 22.25vmin no-repeat, linear-gradient(-20deg, #9DC8D8 1vmin, transparent 0.5vmin) 66.75vmin 47.25vmin/3vmin 1.5vmin no-repeat, linear-gradient(288deg, transparent 7.75vmin, #9DC8D8 8vmin, #9DC8D8 9vmin, transparent 9.25vmin) 58.5vmin 48.5vmin/12vmin 22.25vmin no-repeat, linear-gradient(285deg, transparent 7.75vmin, #9DC8D8 8vmin, #9DC8D8 9.5vmin, transparent 9.75vmin) 58.5vmin 48.5vmin/12vmin 22.25vmin no-repeat, linear-gradient(15deg, #66a9c2 1.25vmin, transparent 0.5vmin) 63.5vmin 47.25vmin/3vmin 1.5vmin no-repeat, linear-gradient(285deg, transparent 7.75vmin, #66a9c2 8vmin, #66a9c2 9vmin, transparent 9.25vmin) 56.75vmin 48.5vmin/12vmin 22.25vmin no-repeat, linear-gradient(282deg, transparent 7.75vmin, #66a9c2 8vmin, #66a9c2 9.5vmin, transparent 9.75vmin) 56.75vmin 48.5vmin/12vmin 22.25vmin no-repeat, linear-gradient(-20deg, #9DC8D8 1.25vmin, transparent 0.5vmin) 60.75vmin 47.25vmin/3vmin 1.5vmin no-repeat, linear-gradient(282deg, transparent 7.75vmin, #9DC8D8 8vmin, #9DC8D8 9vmin, transparent 9.25vmin) 55vmin 48.5vmin/12vmin 22.25vmin no-repeat, linear-gradient(279deg, transparent 7.75vmin, #9DC8D8 8vmin, #9DC8D8 9.5vmin, transparent 9.75vmin) 55vmin 48.5vmin/12vmin 22.25vmin no-repeat, lin.........完整代码请登录后点击上方下载按钮下载查看
网友评论0