css实现炫酷扇形分割多个人物图片圆圈鼠标悬停显示完整图片幻灯片效果代码
代码语言:html
所属分类:幻灯片
代码描述:css实现炫酷扇形分割多个人物图片圆圈鼠标悬停显示完整图片幻灯片效果代码
代码标签: css 炫酷 扇形 分割 多个 人物 图片 圆圈 鼠标 悬停 显示 完整 图片 幻灯片
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @property --i { syntax: "<integer>"; inherits: true; initial-value: 1; } @property --_t { syntax: "<number>"; inherits: true; initial-value: 1; } @property --_m { syntax: "<number>"; inherits: true; initial-value: 1; } @property --_r { syntax: "<angle>"; inherits: true; initial-value: 0deg; } section { --d: 20s; /* animation duration*/ font: 20px/1.4 "Source Code Pro", Inconsolata, Menlo, monospace; color: rgb(34 34 34); margin: 1em; display: grid; grid-template-columns: auto 1fr; padding-left: 350px; position: relative; } section:before { content: "{"; font-size: 9em; line-height: 1em; color: #e3e2db; margin: auto; } li { --i: sibling-index(); --n: sibling-count(); } a { text-decoration: none; border-bottom: 1px dotted; color: firebrick; background: conic-gradient(firebrick 0 0) bottom/100% 0% no-repeat; transition: .3s; } a span { position: absolute; z-index: 0; display: grid; top: 50%; left: 175px; translate: -50% -50%; width: 320px; aspect-ratio: 1; transform: rotate(var(--_r)) translate(calc(var(.........完整代码请登录后点击上方下载按钮下载查看
网友评论0