div+css实现卡通可爱番茄悬浮张嘴摆动动画效果代码
代码语言:html
所属分类:悬停
代码描述:div+css实现卡通可爱番茄悬浮张嘴摆动动画效果代码
代码标签: div css 卡通 可爱 番茄 悬浮 张嘴 摆动 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> ::-moz-selection{background:#1A1A1A;color:#FFF} ::selection{background:#1A1A1A;color:#FFF} a{text-decoration:none;cursor:pointer} a:hover{text-decoration:underline} html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline} html,body{overflow-X:hidden} .kolor-tla{background-color:#CD4F5D;-webkit-transition:background .3s ease-in-out;transition:background .3s ease-in-out} .pozycja{display:table;position:absolute;height:100%;width:100%} .srodek{display:table-cell;vertical-align:middle;padding:20px 0px} span{display:block} #qlogo{width:200px;height:240px;margin:0 auto;text-align:center;position:relative;border:3px solid transparent;-webkit-transition:border-color .3s ease-in-out;transition:border-color .3s ease-in-out} .poziomq{text-align:center;position:relative;top:33%;display:inline-block;width:105px;-webkit-animation:ruchLewitacja 3s ease-in-out infinite;animation:ruchLewitacja 3s ease-in-out infinite} .cialo{background:#F67872;margin:0 auto;width:105px;height:105px;border-radius:25%;position:relative} .liscie{position:relative} .liscie .lodyga{width:25px;height:45px;border:10px solid #44A48E;border-bottom:none;border-right:none;position:absolute;top:-60px;left:50%;margin-left:-5px;border-top-left-radius:30px} .liscie .lisc-lewy{width:0px;height:10px;border:10px solid #44A48E;border-top:none;position:absolute;top:-25px;left:20px;border-bottom-left-radius:10px} .liscie .lisc-lewy.drugi{left:31px} .liscie .lisc-prawy{width:0px;height:10px;border:10px solid #44A48E;border-top:none;position:absolute;top:-25px;right:21px;border-bottom-right-radius:10px} .liscie .lisc-prawy.drugi{right:32px} .liscie .after{content:"";display:block;width:0px;height:0px;position:absolute;top:0px;border-top:20px solid #CD4F5D;border-right:20px solid transparent;border-left:20px solid transparent;-webkit-transition:border-top-color .3s ease-in-out;transition:border-top-color .3s ease-in-out} .liscie .lisc-lewy .after{left:-10px} .liscie .lisc-prawy .after{right:-10px} .twarz{width:105px;position:relative} .oczy{width:105px;height:20px;position:relative;-webkit-transform-origin:center;transform-origin:center} .oczy .oko{position:absolute;width:12px;height:12px;background:#1A1A1A;top:28px;border-radius:50%;-webkit-animation:ruchOczy 12s infinite ease-in-out;animation:ruchOczy 12s infinite ease-in-out} .oczy .oko:before{content:"";display:block;width:14px;height:0px;background:#F67872;position:absolute;left:-1px;top:-1px;-webkit-transition:height .1s ease-in-out;transition:height .1s ease-in-out} .oczy .oko:after{content:"";display:block;width:14px;height:0px;background:#F67872;position:absolute;left:-1px;bottom:-1px;-webkit-transition:height .1s ease-in-out;transition:height .1s ease-in-out} .oczy .oko.oko-lewe{left:16%} .oczy .oko.oko-prawe{right:16%} .piegi{width:105px;height:10px;position:relative} .piegi .pieg{position:absolute;width:5px;height:5px;background:#C4605B;top:27px;border-radius:0%;-webkit-transition:top .1s ease-in-out;transition:top .1s ease-in-out} .piegi .pieg:after{content:"";display:block;width:5px;height:5px;background:#C4605B;position:absolute;top:0px;border-radius:0%} .piegi .pieg.pieg-lewy{left:10%} .piegi .pieg.pieg-lewy:after{left:20px} .piegi .pieg.pieg-prawy{right:10%} .piegi .pieg.pieg-prawy:after{right:20px} .buzia{width:85px;height:35px;background:#F93348;position:relative;top:28px;left:10px;border-radius:0% 0% 70% 70% / 0% 0% 140% 140%;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out;overflow:hidden} .buzia .zuby{width:85px;height:7px;background:#fff;position:absolute;top:0px;left:0;border-radius:0 0 5px 5px / 0 0 35px 35px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out} .buzia .gardlo{width:85px;height:14px;background:rgba(0,0,0,0.15);position:absolute;top:0px;left:0;border-radius:0 0 13px 13px / 0 0 35px 35px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out} .rece .reka{background:#F67872;width:2px;height:30px;position:absolute;top:80px;-webkit-transform:rotate(0deg);transform:rotate(0deg)} .rece .reka.reka-lewa{left:7px} .rece .reka.reka-prawa{right:7px} .rece .reka:after{content:"";display:block;width:4px;height:2px;background:#F67872;position:absolute;top:27px;left:-1px} .nogi{position:relative} .nogi > *{width:20px;height:2px;background:#F67872;position:absolute;-webkit-transform-origin:center;transform-origin:center} .nogi .noga-lewa{bottom:0px;left:15px;-webkit-transform:rotate(90deg);transform:rotate(90deg)} .nogi .noga-lewa:after{content:"";display:block;width:2px;height:6px;background:#F67872;position:absolute;bottom:-4px;left:18px} .nogi .noga-prawa{bottom:0px;right:15px;-webkit-transform:rotate(90deg);transform:rotate(90deg)} .nogi .noga-prawa:after{content:"";display:block;width:2px;height:6px;background:#F67872;position:absolute;top:-4px;left:18px} .cien{display:block;width:120px;height:50px;background:rgba(0,0,0,0.2);border-radius:50%;margin-left:40px;position:absolute;bottom:0px;-webkit-animation:ruchCien 3s ease-in-out infinite;animation:ruchCien 3s ease-in-out infinite} .poziomq:hover .oczy .oko:before{height:0px} .poziomq:hover .oczy .oko:after{height:6px} .poziomq:hover .piegi .pieg{top:22px} .poziomq:hover .buzia{width:45px;height:15px;top:34px;left:30px} .poziomq:hover .buzia .zuby{width:45px;height:0px;top:0px} .poziomq:hover .buzia .gardlo{width:45px;height:3px;top:0px} .poziomq:hover .noga-lewa{-webkit-animation:ruchNogaLewa .15s ease-in-out infinite;animation:ruchNogaLewa .15s ease-in-out infinite} .poziomq:hover .noga-prawa{-webkit-animation:ruchNogaPrawa .15s ease-in-out infinite;animation:ruchNogaPrawa .15s ease-in-out infinite} .poziomq:hover .reka{top:auto;bottom:25px} .poziomq:hover .reka-lewa{left:4px;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-animation:ruchNogaLewa .15s ease-in-out infinite;animation:ruchNogaLewa .15s ease-in-out infinite} .poziomq:hover .reka-prawa{right:4px;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-animation:ruchRekaLewa .15s ease-in-out infinite;animation:ruchRekaLewa .15s ease-in-out infinite} .poziomq:hover .piegi .pieg{top:18px} .po.........完整代码请登录后点击上方下载按钮下载查看
网友评论0