纯css+svg实现小鹿效果
代码语言:html
所属分类:布局界面
代码描述:纯css+svg实现小鹿效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <style> body { margin: 0; height: 100vh; background-color: #666; display: flex; justify-content: center; align-items: center; } svg { width: 95vmin; animation: floating 1s ease-in-out infinite alternate; } @keyframes floating { 0% { transform: translatey(0); } 100% { transform: translatey(5%); } } .ab_eye_lids { animation: blink 4s ease-in-out infinite; } @keyframes blink { 0% { cy: 90.94; } 10% { cy: 117.62; } 20%, 100% { cy: 90.94; } } </style> </head> <body translate="no"> <svg version="1.1" viewBox="0 0 299.87 217.62" xmlns="http://www.w3.org/2000/svg"> <g id="antibody"> <path id="ab_body" d="m162.45 205.12c0 6.9036-5.5964 12.5-12.5 12.5s-12.5-5.5964-12.5-12.5l1e-5 -50-46.339-46.339 17.678-17.678 41.161 41.161 41.161-41.161 17.678 17.678-46.339 46.339z" fill="#ffff00" fill-rule="evenodd" stroke-width=".26458" /> <path id="ab_left_arm" d="m90.259 59.633a25 25 0 0 1 18.434 26.327 25 25 0 0 1-22.726 22.726 25 25 0 0 1-26.327-18.434" fill="none" stroke="#ffcc00" stroke-linecap="round" stroke-width="17.5" /> <path id="ab_left_inner_arm" d="m83.789 83.781 16.161-1.5165 8.8388 8.8388-17.678 17.678-8.8388-8.8388 1.5165-16.161" fill="#ffcc00" /> <path id="ab_right_arm" d="m209.64 59.633a25 25 0 0 0-18.434 26.327 25 25 0 0 0 22.726 22.726 25.........完整代码请登录后点击上方下载按钮下载查看
网友评论0