css实现文字卡片边框光线走动走光动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现文字卡片边框光线走动走光动画效果代码

代码标签: css 文字 卡片 边框 光线 走动 走光 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
      * {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #181818
}

.box {
    position: relative;
    width: 300px;
    height: 400px;
    background: rgba(0,0,0,0.75);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.box::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background-image: conic-gradient(trans.........完整代码请登录后点击上方下载按钮下载查看

网友评论0