纯css实现可爱的面包404页面
代码语言:html
所属分类:布局界面
代码描述:纯css实现可爱的面包404页面
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> .fundo{ animation: scales 3s alternate infinite; transform-origin: center; } .pao-baixo{ animation: rotatepao 14s cubic-bezier(.1,.49,.41,.97) infinite; transform-origin: center; } .pao-cima{ animation: rotatepao 7s 1s cubic-bezier(.1,.49,.41,.97) infinite; transform-origin: center; } .olhos{animation: olhos 2s alternate infinite; transform-origin: center; } .left-sparks{animation: left-sparks 4s alternate infinite; transform-origin: 150px 156px; } .right-sparks{animation: left-sparks 4s alternate infinite; transform-origin: 310px 150px; } .olhos{animation: olhos 2s alternate infinite; transform-origin: center; } @keyframes scales{ from { transform: scale(0.98)} to{ transform: scale(1)} } @keyframes rotatepao{ 0% { transform: rotate(0deg)} 50% , 60%{ transform: rotate(-20deg)} 100%{ transform: rotate(0deg) } } @keyframes olhos{ 0%{ transform: rotateX(0deg); } 100%{ transform: rotateX(30deg); } } @keyframes left-sparks{ 0%{ opacity: 0; } } .main{ min-height: 600px; margin: 0px auto; width: auto; max-width: 460px; display: flex; align-items: center; justify-content: center; } </style> </head> <body translate="no"> <div class="main"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="470" height="290" viewBox="0 0 470 290"> <defs> <path class="fundo" id="prefix__a" d="M5.063 128.67c-2.513 15.192 5.633 31.093 17.898 38.941 5.99 3.832 13.34 6.528 16.471 13.254 4.868 10.452-3.879 22.437-13.113 28.515-9.236 6.078-20.5 10.9-24.704 21.683-2.771 7.108-1.685 15.387 1.058 22.507 10.06 26.112 39.393 37.547 65.479 36.15 26.086-1.396 50.827-12.407 76.416-18.075 87.873-19.465 180.005 24.717 267.728 4.47 13.65-3.151 27.4-8.081 37.943-17.99 11.883-11.167 18.632-28.016 19.65-45.023.97-16.225-4.34-34.495-17.744-41.806-7.834-4.273-17.196-4.1-25.7-1.774-5.43 1.483-10.767 3.808-16.369 3.848-5.601.038-11.763-3-13.386-8.808-1.707-6.107 2.182-12.41 6.642.........完整代码请登录后点击上方下载按钮下载查看
网友评论0