svg+css实现粉色爱心wifi信号开关动画效果代码
代码语言:html
所属分类:表白
代码描述:svg+css实现粉色爱心wifi信号开关动画效果代码
代码标签: svg css 粉色 爱心 wifi 信号 开关 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { min-height: 100vh; background-color: #080607; } #group-wifi, #group-hearth { fill: #413544; } #wrapper { display: grid; place-items: center; min-height: 100vh; } #svg { width: 200px; height: 200px; display: block; position: relative; } #hearth-3 { z-index: 0; } .active #group-hearth [id^=hearth] { -webkit-animation-iteration-count: 1; animation-iteration-count: 1; -webkit-animation-duration: 3s; animation-duration: 3s; fill: #FF87CA; } .active #group-hearth #hearth-0 { -webkit-animation-name: pulse1; animation-name: pulse1; } .active #group-hearth #hearth-1 { -webkit-animation-name: pulse2; animation-name: pulse2; } .active #group-hearth #hearth-2 { -webkit-animation-name: pulse3; animation-name: pulse3; } .active #group-hearth #hearth-3 { -webkit-animation-name: pulse4; animation-name: pulse4; } @-webkit-keyframes pulse1 { 0% { fill: #413544; } 1% { fill: #FF87CA; } 100% { fill: #FF87CA; } } @keyframes pulse1 { 0% { fill: #413544; } 1% { fill: #FF87CA; } 100% { fill: #FF87CA; } } @-webkit-keyframes pulse2 { 0% { fill: #413544; } 10% { fill: #413544; } 11% { fill: #FF87CA; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0