火焰效果
代码语言:html
所属分类:动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title> - Variable Flames - Update</title> <style> body { background-color: black; } .firepit { position: relative; width: 100px; height: 100px; margin: 120px auto; transform-origin: center bottom; transform: scaleY(3); } .flame { position: absolute; bottom: 0px; border-radius: 8% 50% 50% 50%; transform: rotate(45deg); } .flameLayer { bottom: 0; position: absolute; /* animation description */ animation-name: layerRandomize; animation-delay: 10ms; animation-duration: 200ms; animation-iteration-count: infinite; animation-timing-function: ease-in; animation-direction: alternate; } .red { width: 50px; height: 50px; background-color: rgba(255, 37, 19, 0.5); border: 0px; box-shadow: 0px 0px 5px 4px rgba(255, 37, 19, 0.5); /* animation description */ animation-name: flickRed; animation-delay: 10ms; animation-duration: 500ms; animation-iteration-count: infinite; animation-timing-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0