jquery实现火山喷发动画效果代码
代码语言:html
所属分类:动画
代码描述:jquery实现火山喷发动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html, body { height: 100%; padding: 0; margin: 0; overflow: hidden; font-family: Helvetica, Arial; color: #ffffff; } body { background: linear-gradient(0deg, #aabbbb, #88aadd); } #stage, #smoke { position: absolute; top: 0; left: 0; } #stage { z-index: 20; } #smoke { z-index: 5; } .volcano-container { z-index: 10; position: absolute; bottom: 0; left: 0; right: 0; margin: auto; } .volcano { position: absolute; border: 380px solid transparent; border-left: 140px solid transparent; border-bottom: 200px solid #240904; width: 0; height: 0; bottom: 0; left: 0; right: 0; margin: auto; } .volcano.flipped { transform: scaleX(-1); } .lip { position: absolute; left: 0; right: 0; bottom: 0; margin: auto; width: 300px; height: 240px; background-color: #240904; border-radius: 200px; } .lip .lava { position: absolute; left: 0; right: 0; top: 10px; margin: auto; width: 270px; height: 230px; background-color: #fa7510; border-radius: 200px; clip-path: ellipse(120px 60px at top); } .lip .mask { position: absolute; top: 80px; left: 0; right: 0; margin: auto; background-color: #240904; width: 290px; height: 300px; } .toggle { display: none; z-index: 100; position: absolute; top: 10px; left: 10px; } </style> </head> <body > <can.........完整代码请登录后点击上方下载按钮下载查看
网友评论0