css实现黑白猫太极阴阳悬浮效果代码
代码语言:html
所属分类:悬停
代码描述:css实现黑白猫太极阴阳悬浮效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { align-items: center; background-color: #f9abab; display: flex; flex-direction: column; font-family: sans-serif; font-weight: 900; height: 100vh; justify-content: center; margin: 0; } .box { --box-width: 300px; /* background-color: #f9f; */ border-radius: 50%; /* Chromium work-around */ clip-path: circle(150px at 150px); height: var(--box-width); overflow: hidden; position: relative; width: var(--box-width); } .activator { height: 100%; position: absolute; width: 100%; } .activator.white { clip-path: polygon( 35.66% 85.67%, 44.99% 83.13%, 54.08% 90.2%, 55.1% 101.27%, 64.89% 94.58%, 74.59% 86.97%, 82.83% 78.07%, 88.86% 67.82%, 91.48.........完整代码请登录后点击上方下载按钮下载查看
网友评论0