css实现倾斜卡片悬浮背景发光凸出效果代码
代码语言:html
所属分类:悬停
代码描述:css实现倾斜卡片悬浮背景发光凸出效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body, ol, ul, h1, h2, h3, h4, h5, h6, p, th, td, dl, dd, form, fieldset, legend, input, textarea, i, select { margin: 0; padding: 0; } body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background-color: #2C3138; -webkit-perspective: 90rem; perspective: 90rem; -webkit-perspective-origin: 34% 61%; perspective-origin: 34% 61%; } img { width: 160px; } button { cursor: pointer; outline: 0; width: 180px; height: 48px; border-radius: 8px; background-color: #2C3138; margin-top: 40px; overflow: hidden; -webkit-transform: scale(.7); transform: scale(.7); } button::after { content: ""; position: relative; top: -40px; display: block; width: 48px; height: 107%; background-color: #000; margin-top: -1px; margin-left: -7px; border-radius: 6px 0 0 6px; background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTQgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYX.........完整代码请登录后点击上方下载按钮下载查看
网友评论0