css实现一个招财猫招手动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现一个招财猫招手动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } body { background: #4b477a; margin: 0; } .container { position: absolute; margin: auto; top: 0; bottom: 0; left: 0; right: 0; width: 250px; height: 445px; } .face { position: absolute; z-index: 1; width: 250px; height: 210px; background: #fff; border: 5px solid #43101d; -webkit-border-radius: 100%; -moz-border-radius: 100%; border-radius: 100%; overflow: hidden; } .brown-spot { position: absolute; top: -10px; left: 75px; width: 90px; height: 80px; background: #eaaf7a; -webkit-border-radius: 100%; -moz-border-radius: 100%; border-radius: 100%; } .ear { position: absolute; width: 120px; height: 150px; background: #fff; border: 5px solid #43101d; -webkit-border-radius: 5% 100% 20% 100%; -moz-border-radius: 5% 100% 20% 100%; border-radius: 5% 100% 20% 100%; } .ear.right { left: 130px; -webkit-transform: scaleX(-1); -moz-transform: scaleX(-1); transform: scaleX(-1); } .ear:after { position: absolute; content: ''; top: 13px; left: 12px; width: 50px; height: 70px; background: #eb5759; -webkit-border-radius: 5% 80% 20% 80%; -moz-border-radius: 5% 80% 20% 80%; border-radius: 5% 80% 20% 80%; } .eye { position: absolute; z-index: 1; top: 90px; left: 56px; width: 47px; height: 47px; border: 5px solid; border-color: transparent transparent #43101d #43101d; -webkit-border-radius: 100%; -moz-border-radius: 100%; border-radius: 100%; -webkit-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0