单个div+css实现蜡烛燃烧效果代码
代码语言:html
所属分类:布局界面
代码描述:单个div+css实现蜡烛燃烧效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body { background: #212; } .luminous { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 10vmin; height: 40vmin; box-shadow: 0 -10vmin 0 -4.66vmin #000; } .luminous::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-shadow: inset 0 1vmin 1vmin -1vmin #fffc; background: linear-gradient(#0000,#0004), radial-gradient(100% 500% at 100% 0, #0000 47%, #000 47.5% 53%, #0000 53.5%) 50% 0 / 100% 7%, radial-gradient(100% 100% at 50% 0, #d8bb9900, #b89b79cc), linear-gradient(#0000, #4316), linear-gradient(#2120 30%, #212d), linear-gradient(90deg, #db98, #0000 30% 75%, #d8bb99cc), radial-gradient(farthest-side at 60% 30%, #0000, #da6c 99.99%, #edb) 40% 0 / 90% 7%, linear-gradient(#edb, #cb9); background-repeat: no-repeat; border-radius: 100% / 10% 20% 0 0; filter: blur(0.07vmin) contrast(1.6); .........完整代码请登录后点击上方下载按钮下载查看
网友评论0