css迷你小球走平衡木动画效果代码
代码语言:html
所属分类:动画
代码描述:css迷你小球走平衡木动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap"); body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #0081cb33; font-family: "Montserrat", sans-serif; } .ball { position: absolute; bottom: 25px; right: -40px; width: 100px; height: 100px; background: #ff0022; border-radius: 50%; animation: ball-move 4s ease-in-out 2s infinite alternate; } .ball::after { position: absolute; content: ''; top: 50px; right: 10px; width: 10px; height: 10px; background: #FFF; border-radius: 50%; } .bar { width: 500px; height: 25px; background: black; border-radius: 30px; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0