css实现可爱小老虎玩皮球动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现可爱小老虎玩皮球动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> html, body { height: 100%; width: 100%; overflow: hidden; padding: 0; margin: 0; } body { background: #3BA99C; display: flex; } * { position: absolute; } *:before, *:after { position: absolute; content: ""; } .box { position: relative; background: #33658A; width: 500px; height: 500px; margin: auto; border-radius: 50%; } .ball { width: 150px; height: 150px; top: 41%; left: 45%; border-radius: 50%; background-color: #EE6352; box-shadow: inset -10px -10px 0px #c62714; animation: toss 3s ease infinite; } .tail { position: absolute; width: 200px; height: 100px; background: transparent; top: 61%; left: 72%; transform-origin: left center; transform: rotate(-20deg); animation: flick 1s ease infinite; } .tail .tail-1 { position: absolute; width: 35%; height: 20%; background: orange; bottom: 0; } .tail .tail-2 { position: absolute; width: 30%; height: 20%; background: orange; transform: rotate(-20deg); left: 30%; top: 73%; border-radius: 0 50% 50% 30%; overflow: hidden; } .tail .tail-2 .end { position: absolute; background: black; width: 30%; height: 100%; right: 0; } .tail .tail-3 { position: absolute; width: 25%; height: 60%; background: orange; left: 60%; top: 20%; border-radius: 50% 50% 50% 0%; } .body { position: absolute; width: 200px; height: 110px; background: orange; border-radius: 40% 40% 40% 50%; top: 68%; left: 39%; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0