div+css实现边框柔性光环走光转动动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现边框柔性光环走光转动动画效果代码
代码标签: div css 边框 柔性 光环 走光 转动 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.5.0.css"> <style> @property --rotation { syntax: "<angle>"; initial-value: 0turn; inherits: false; } html, body { height: 100%; font-size: 24px; } body { display: grid; place-content: center; background: #202020; } .glow-card { aspect-ratio: 1; position: relative; color: white; padding: 2rem; border-radius: 1rem; overflow: hidden; display: grid; place-content: center; } .glow-card::before { position: absolute; inset: 0; content: ""; z-index: -2; background-image: conic-grad.........完整代码请登录后点击上方下载按钮下载查看
网友评论0