单个div+css实现店铺关门悬挂折纸牌效果代码
代码语言:html
所属分类:布局界面
代码描述:单个div+css实现店铺关门悬挂折纸牌效果代码
代码标签: 单个 div css 店铺 关门 悬挂 折纸 牌
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { min-height: 320px; height: 100vh; position: relative; background-color: #191970; } div { position: absolute; left: 50%; top: 50%; } div::before, div::after { display: block; content: ''; position: absolute; } @media (max-width: 400px) { div:not(.no-scale) { transform: scale(0.8); } } #pun { width: 380px; height: 380px; margin-left: -190px; margin-top: -190px; background: linear-gradient(130deg, rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.6) 50.5%, rgba(255,255,255,0) 51%) 38% 41%/5em 6em, linear-gradient(-130deg, rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.6) 50.5%, rgba(255,255,255,0) 51%) 62% 41%/5em 6em; background-repeat: no-re.........完整代码请登录后点击上方下载按钮下载查看
网友评论0