css实现三维立体菜单悬浮效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现三维立体菜单悬浮效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Radio+Canada:wght@500&display=swap'); * { padding: 0; margin: 0; box-sizing: border-box; } body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #4a4a4a; font-family: 'Radio Canada', sans-serif; } ul { position: relative; transform: skewY(-15deg); } ul li { list-style: none; background: #1c1c1c; width: 250px; padding: 40px 20px; position: relative; z-index: var(--i); transition: .5s; } ul li:before { content: ''; position: absolute; top: 0px; left: -40px; width: 40px; height: 100%; background: #121212; transform-origin: right; transform: skewY(45deg); transition: .5s; } ul li:after { content: ''; position: absolute; top: -40px; left: 0px; wid.........完整代码请登录后点击上方下载按钮下载查看
网友评论0