css+scene实现跳动小白兔动画效果代码
代码语言:html
所属分类:动画
代码描述:css+scene实现跳动小白兔动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> .cony { position: absolute; width: 400px; left: 100px; top: 100px; } .cony .ear { position: absolute; top:-15px; height: 10px; width: 10px; left: 0; right: 0; margin: auto; } .cony .ear:before,.cony .ear:after { content:""; position: absolute; width: 35px; height: 120px; background: #FCBFCA; border-radius: 60% 40% 50% 50% / 50%; border:3px solid #333; top: -55px; box-shadow:#fff 0px 0px 0px 6px inset; } .cony .ear:before { transform: rotate(-5deg); left: -45px; } .cony .ear:after { transform: rotate(5deg); right: -45px; } .cony .head { position: absolute; width: 210px; height:190px; border-radius: 50%; box-sizing: border-box; left: 0; right: 0; margin: auto; border: 3px solid black; background: #fff; transform: rotate(15deg) } .cony .head:before { position: absolute; width: 100%; height: 100%; border-radius: 50%; left: 0; top: 0; content: ""; background: inherit; z-index: 1; } .cony .face { position: absolute; width: 100%; height: 100%; z-index: 2; } .cony .face-content { position: absolute; width: 100%; height: 100%; left: -4%; } .cony .cheek { position: absolute; width: 40px; height: 25px; background: #FDDBD9; background: radial-gradient(RGBA(253, 163, 155, 1.00), RGBA(253, 163, 155, 0.5), RGBA(253, 163, 155, 0) 70%); border-radius: 50%; top:50%; } .cony .cheek.left { left:15%; } .cony .cheek.right { right:15%; } .cony .mouth-outline { position: absolute; width: 40px; height: 45px; top:45%; left: 0; right: 0; margin: auto; } .cony .nose { position: absolute; margin:auto; top: 45%; left: 0px; right: 0px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid black; } .cony .nose-line { background: #333; height: 12px; width: 3px; position: absolute; left: 0; right: 0; top: 100%; margin: auto; } .cony .mouth { position: absolute;; width: 40px; height: 32px; left: 0px; top:58%; left: 0; right: 0; margin: auto; z-index: -1; } .cony .mouth-mask { position: absolute; content: ""; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0