一个div+css实现奔跑的兔子动画效果代码
代码语言:html
所属分类:动画
代码描述:一个div+css实现奔跑的兔子动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background: linear-gradient(to bottom, #ccc, #737373) 50% 50%/100% 50% no-repeat, linear-gradient(25deg, rgba(255, 255, 255, 0.0001) calc(50% - 100px), #f7797d 50%), linear-gradient(to bottom, rgba(255, 255, 255, 0.0001) calc(50% + 50px), #f7797d calc(50% + 50px)), repeating-linear-gradient(to right, #f7797d 10px, rgba(255, 255, 255, 0.0001) 15px, rgba(255, 255, 255, 0.0001) 30px, #f7797d 35px, #f7797d 50px) 0px 50%, repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 2px, #f7797d 2px, #f7797d 10px, rgba(255, 255, 255, 0.25) 10px, rgba(255, 255, 255, 0.25) 12px), #f7797d; display: grid; place-content: center; height: 100vh; -webkit-animation: speed 0.25s linear infinite, zoom 3s ease-in-out infinite alternate, blur 3s ease-in-out infinite alternate; animation: speed 0.25s linear infinite, zoom 3s ease-in-out infinite alternate, blur 3s ease-in-out infinite alternate; overflow: hidden; } body:before { content: ""; position: absolute; width: 100%; height: 50%; top: calc(50% + 110px); -webkit-backdrop-filter: blur(4px) invert(1); backdrop-filter: blur(4px) invert(1); z-index: 4; } @-webkit-keyframes speed { from { background-position: 50% calc(100%.........完整代码请登录后点击上方下载按钮下载查看
网友评论0