react实现后台管理页面骨架布局加载效果代码
代码语言:html
所属分类:布局界面
代码描述:react实现后台管理页面骨架布局加载效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.css"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body { font-size: 16px; } .example-icon { background-color: var(--color); width: var(--size); height: var(--size); display: inline-block; border-radius: 50%; } .example-skeleton { --size: 1rem; background-color: var(--color); width: calc(var(--size) * var(--chars)); height: calc(var(--size) * var(--lines)); margin-bottom: 0.75rem; display: inline-block; overflow: hidden; position: relative; animation: animate-skeleton 2048ms ease-in-out infinite; } .example-skeleton:last-child { margin-bottom: 0; } .example-skeleton:after { content: ""; width: 0; height: 100%; display: inline-block; opacity: 0; position: absolute; top: 0; left: 0; box-shadow: 0 0 2rem 0.75rem #ffffff; transform: skewX(-10deg); animation: animate-skeleton-shine 2048ms ease-in-out infinite; } @keyframes animate-skeleton { 50% { filter: brightness(105%); } } @keyframes animate-skeleton-shine { 0% { opacity: 0; } 25% { opacity: 0; } 50% { opacity: 1; } 100% { left: 100%; opacity: 1; } } .example-offcanvas-container { width: 100vw; height: 100vh; display: flex; overflow: hidden; } .example-offcanvas-screen { width: calc(100vw - 3rem); display: flex; flex-direction: column; flex-grow: 1; flex-shrink: 0; overflow: hidden; box-shadow: 0 0 0.7rem 0.4rem rgba(0, 0, 0, 0.3); } .example-top-bar { background-color: #418eec; width: 100%; height: 3rem; display: flex; flex-wrap: nowrap; box-shadow: 0 0 0.7rem 0.4rem rgba(0, 0, 0, 0.3); transform: translateZ(1px); } .example-hamburger-menu { background-color: #1773e3; width: 3rem; height: 3rem; border: 0; outline: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; flex-shrink: 0; transition: background-color 64ms ease-out; } .example-hamburger-menu:hover { background-color: #1467cc; } .example-hamburger-menu:active { background-color: #125bb5; } .example-hamburger-menu.example-hamburger-menu-active > span:nth-child(1) { transform: translateY(0.45rem) rotate(-45deg); } .example-hamburger-menu.example-hamburger-menu-active > span:nth-child(2) { opacity: 0; } .example-hamburger-menu.example-hamburger-menu-active > span:nth-child(3) { transform: translateY(-0.45rem) rotate(45deg); } .example-hamburger-menu > span { background-color: #ffffff; width: 1.1em; height: 0.15rem; margin-bottom: 0.3rem; display: block; transition: transform 128ms ease-out 256ms, opacity 128ms ease-out 246ms; } .example-hamburger-menu > span:last-child { margin-bottom: 0; } .example-search-box { height: 100%; padding: 0 1rem; display: flex; align-items: center; } .........完整代码请登录后点击上方下载按钮下载查看
网友评论0