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=Bungee&display=swap'> <style> body { font-family: "bungee"; width: 100vw; height: 100vh; background-image: linear-gradient(85deg, #E0E0E0, #B0BEC5); display: flex; align-items: center; justify-content: center; } .number { position: relative; display: flex; font-size: 15rem; background-image: linear-gradient(90deg, #E1BEE7 33%, 33%, #BBDEFB 66%, 66%, #C8E6C9); box-shadow: 0 0 0 0.5rem white, 0 2rem 4rem rgba(0, 0, 0, 0.3), 0 1.5rem 1rem rgba(0, 0, 0, 0.22); } .number::after { content: ""; background: url("data:image/svg+xml;base64,PHN2ZwogIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycKICB4bWxuczp4bGluaz0naHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluaycKICB3aWR0aD0nNTAwJyBoZWlnaHQ9JzUwMCc+CgogICAgPGZpbHRlciBpZD0nbm9pc2UnIHg9JzAnIHk9JzAnPgogICAgICA8ZmVUdXJidWxlbmNlCiAgICAgICAgdHlwZT0nZnJhY3RhbE5vaXNlJwogICAgICAgIGJhc2VGcmVxdWVuY3k9JzAuNjUnCiAgICAgICAgbnVtT2N0YXZlcz0nMycKICAgICAgICBzdGl0Y2hUaWxlcz0nc3RpdGNoJwogICAgICAvPgo.........完整代码请登录后点击上方下载按钮下载查看
网友评论0