css实现呼吸草呼吸效果
代码语言:html
所属分类:布局界面
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> html { box-sizing: border-box; font-size: 100%; height: 100%; font-family: 'Libre Franklin', sans-serif; } html.lato { font-family: "Lato", sans-serif; } html.prompt { font-family: "Prompt", sans-serif; } body { position: relative; height: 100%; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* reset */ * { box-sizing: inherit; margin: 0; padding: 0; border-radius: 0; border: none; outline: none; background: none; -webkit-margin-before: 0; -webkit-margin-after: 0; -webkit-margin-start: 0; -webkit-margin-end: 0; -webkit-padding-before: 0; -webkit-padding-start: 0; -webkit-padding-end: 0; -webkit-padding-after: 0; } *::before, *::after { box-sizing: inherit; } *:active, *:hover { outline: 0; } b, i, em, strong, h1, h2, h3, h4, h5, h6, th, td, pre, ins, del, address, input, select, button, textarea { text-transform: inherit; font-family: inherit; font-size: inherit; font-weight: normal; font-style: normal; letter-spacing: inherit; } textarea, input { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-clip: padding-box; } a, ins, del, button { color: inherit; text-decoration: none; } ul, ol, menu { list-style: none; } table, table { width: 100%; border-collapse: separate; border-spacing: 0; } pre, textarea { overflow: auto; max-width: 100%; } img { width: 100%; height: auto; display: block; } svg:not(:root) { overflow: hidden; } form { width: 100%; } button { cursor: pointer; overflow: visible; } textarea { resize: none; } input[type='range'] { -webkit-appearance: none; background-color: transparent; } input[type='range']::-ms-track { cursor: pointer; background: transparent; border-color: transparent; color: transparent; } input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; } ::moz-focus-inner { padding: 0; border: none; } .plant { width: 5rem; height: 4rem; position: relative; margin-top: 4rem; } .plant::after, .plant::before { content: ''; position: absolute; } .plant::after { width: 100%; height: 100%; border-radius: 0.5rem 0.5rem 0.2rem 0.2rem; bottom: 0; left: 0; background-color: #4C8DE8; } .plant::before { width: 18rem; height: 18rem; border-radius: 100.........完整代码请登录后点击上方下载按钮下载查看
网友评论0