react实现mac ios弹出层叠通知图层效果代码
代码语言:html
所属分类:弹出层
代码描述:react实现mac ios弹出层叠通知图层效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <style> html, body { width: 100%; height: 100%; font-family: "Montserrat", serif; } .app { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: url("//repo.bfw.wiki/bfwrepo/image/638812db4b46f.png"); background-size: cover; background-position: center; } .add-button { background-color: #0284c7; color: white; border: none; border-radius: 2rem; padding: 0.8rem 1.2rem 0.8rem 0.8rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease-out; font-size: 1.2rem; box-shadow: 0 0.2rem 0.2rem rgba(0, 0, 0, 0.1), 0 0.5rem 1rem rgba(0, 0, 0, 0.3); } .add-button:hover { background-color: #0ea5e9; transform: translateY(-0.1rem); box-shadow: 0 0.3rem 0.2rem rgba(0, 0, 0, 0.1), 0 0.6rem 1rem rgba(0, 0, 0, 0.3); } .add-button:hover svg { transform: rotate(90deg); } .add-button:active { transition: all 0.1s ease-out; transform: translateY(0rem); } .add-button svg { transition: transform 0.3s ease-out; margin-right: 0.3rem; font-size: 1.5rem; } .notifications { --width: 20rem; --height: 4.5rem.........完整代码请登录后点击上方下载按钮下载查看
网友评论0