纯css实现钢铁侠之心动画效果代码
代码语言:html
所属分类:动画
代码描述:纯css实现钢铁侠之心动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { margin: 0; background: #000000; } svg { position: absolute; z-index: 50; } .container { width: 100vw; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; position: absolute; } .heartContainer { position: relative; } .ring { border-radius: 50%; border: 1px solid black; display: flex; justify-content: center; align-items: center; } .core { height: 87px; width: 87px; background: #dbfff7; border: 2px solid #1bf1fe; z-index: 20; } .inner-one { width: 123px; height: 123px; background: #1fb4bb; border: 2px solid #153e51; animation: neon 0.1s ease-in-out infinite alternate; z-index: 19; } .inner-two { width: 158px; height: 158px; background: #1fb4bb; border: 2px solid #153e51; animation: neon 0.1s ease-in-out infinite alternate; z-index: 18; } .inner-three { width: 184px; height: 184px; background: #1fb4bb; border: 2px solid #153e51; animation: neon 0.1s ease-in-out infinite alternate; z-index: 17; } .capsules { width: 256px; height: 256px; background: #2f4045; z-index: 16; } .inner-flat { width: 282px; height: 282px; background: #11545f; z-index: 15; } .neon { width: 366px; height: 366px; background: #dffffc; position: relative; z-index: 13; } .neon-pipe { position: absolute; height: 346px; width: 346px; background: #e3fdff; border-radus: 50%; z-index: 14; border: 1px solid black; animation: neon 0.1s ease-in-out infinite alternate; } .spacer { position: absolute; border: 3px solid red; height: 326px; width: 326px; background: #11545f; border-radus: 50%; z-index: 13; } .outer-flat { width: 382px; height: 382px; background: #11545f; } .outside { width: 434px; height: 434px; background: #393e42; } .wiresboxContainer { position: absolute; height: 346px; width: 80px; } .wires-box { height: 35px; width: 45px; background: #2f4045; position: absolute; display: flex; left: 18px; } .wb1 { top: 0; } .wb2 { bottom: 0; } .wire { height: 31px; width: 5px; border: 1px solid #57332d; background: #663e3c; } .cap { height: 256px; width: 18px; position: absolute; display: flex; } .ball { position: absolute; height: 30px; width: 18px; bottom: 0; border-radius: 10px; background: linear-gradient(#14cbe2, #0a8eaf); } .ball2 { position: absolute; height: 30px; width: 18px; top: 0; border-radius: 10px; background: linear-gradient(#14cbe2, #0a8eaf); } .cap1 { transform: rotate(18deg); } .cap2 { transform: rotate(36deg); } .cap3 { transform: rotate(54deg); } .cap4 { transform: rotate(72deg); } .cap5 { transform: rotate(90deg); } .cap6 { transform: rotate(108deg); } .cap7 { transform: rotate(126deg); } .cap8 { transform: rotate(144deg); .........完整代码请登录后点击上方下载按钮下载查看
网友评论0