css悬浮图片黑白变彩色效果代码
代码语言:html
所属分类:悬停
代码描述: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/reset.min.css"> <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap'> <style> /* Globals */ body { font-family: "Inter", sans-serif; max-width: 55rem; padding: 2rem 1.5rem; margin: 0 auto; color: #241623; background: #eef2f4; } h1 { font-weight: 900; font-size: 2.7rem; max-width: 20ch; } p { max-width: 60ch; } a { color: currentcolor; } /* Utilities */ .auto-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax(var(--auto-grid-min-size, 14rem), 1fr) ); grid-gap: var(--auto-grid-gap, 0); padding: 0; } .flow > * + * { margin-top: var(--flow-space, 1em); } /* Composition */ .team { --flow-space: 2em; } /* Blocks */ .profile { display: flex; flex-direction: co.........完整代码请登录后点击上方下载按钮下载查看
网友评论0