纯css实现可爱的小猫咪
代码语言:html
所属分类:布局界面
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> /* Variables */ /* Reset */ *, *::after, *::before { margin: 0; padding: 0; box-sizing: border-box; } /* Generic */ body { width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; flex-direction: column; background: #fcfcfc; color: #7a3e5e; cursor: pointer; } .main { width: 400px; height: 420px; position: relative; display: flex; justify-content: center; align-items: center; } .cat { position: absolute; margin-top: 80px; width: 328px; height: 352px; } .ear { position: absolute; width: 42px; height: 42px; border-top: 8px solid #7a3e5e; border-left: 8px solid #7a3e5e; border-right: 8px solid transparent; border-bottom: 8px solid transparent; border-radius: 50%/60% 60% 60% 60%; z-index: 100; animation: ear .15s infinite; } .ear-l { top: -4%; left: 15%; transform: r.........完整代码请登录后点击上方下载按钮下载查看
网友评论0