css实现圆锥渐变动画背景卡片效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现圆锥渐变动画背景卡片效果代码

代码标签: css 圆锥 渐变 动画 背景 卡片

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

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">

  
  
<style>
body {
  background-color: #1e293b;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: Helvetica;
}

.card {
  width: 400px;
  height: 400px;
  position: relative;
  border-radius: 40px;
  padding: 40px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: inset 0px 0px 40px rgba(0, 0, 0, .8), 0px 8px 20px rgba(0, 0, 0, .6);
}

.card::after {
  content: '';
  position: absolute;
  top: -300px;
  right: -300px;
  bottom: -300px;
  left: -300px;
  background: conic-gradient(from 180deg at 50% 50%, #12001B -97.5deg, #000000 14.05deg, #040EFF 54.01deg, #8000FF 113.42deg, #00B6B6 185.62deg, #12001B 262.5deg, #000000 374.05deg);
filter.........完整代码请登录后点击上方下载按钮下载查看

网友评论0