div+css实现可爱两个海琼跳舞旋转代码
代码语言:html
所属分类:动画
代码描述:div+css实现可爱两个海琼跳舞旋转代码
代码标签: div css 可爱 两个 海琼 跳舞 旋转 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } body{ background: rgb(18, 98, 121); width: 100%; } #orilla{ width: 100%; height: 30px; background: -moz-radial-gradient(center, ellipse cover, rgba(159,238,242,1) 53%, rgba(122,185,193,1) 84%, rgba(98,208,214,1) 100%); /* FF3.6+ */ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(53%,rgba(159,238,242,1)), color-stop(84%,rgba(122,185,193,1)), color-stop(100%,rgba(98,208,214,1))); /* Chrome,Safari4+ */ background: -webkit-radial-gradient(center, ellipse cover, rgba(159,238,242,1) 53%,rgba(122,185,193,1) 84%,rgba(98,208,214,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-radial-gradient(center, ellipse cover, rgba(159,238,242,1) 53%,rgba(122,185,193,1) 84%,rgba(98,208,214,1) 100%); /* Opera 12+ */ background: -ms-radial-gradient(center, ellipse cover, rgba(159,238,242,1) 53%,rgba(122,185,193,1) 84%,rgba(98,208,214,1) 100%); /* IE10+ */ background: radial-gradient(ellipse at center, rgba(159,238,242,1) 53%,rgba(122,185,193,1) 84%,rgba(98,208,214,1) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9feef2', endColorstr='#62d0d6',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */ margin:0 auto; overflow:hidden; } #cuadro{ width: 70%; height: 850px; position:relative; background: rgb(18, 98, 121); margin: 0 auto; overflow:hidden; } #agua{ width: 100%; height: 880px; position:absolute; float:left; background-color: rgba(255, 255, 255, 0.16); border:9px solid rgb(18, 98, 121); overflow:hidden; z-index:50; top:0px; } #fondo{ width: 100%; height: 30px; position:absolute; float:left; background: rgb(98,208,214); /* Old browsers */ background: -moz-radial-gradient(center, ellipse cover, rgba(98,208,214,1) 27%, rgba(0,126,158,1) 83%, rgba(122,185,193,1) 100%); /* FF3.6+ */ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(27%,rgba(98,208,214,1)), color-stop(83%,rgba(0,126,158,1)), color-stop(100%,rgba(122,185,193,1))); /* Chrome,Safari4+ */ background: -webkit-radial-gradient(center, ellipse cover, rgba(98,208,214,1) 27%,rgba(0,126,158,1) 83%,rgba(122,185,193,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-radial-gradient(center, ellipse cover, rgba(98,208,214,1) 27%,rgba(0,126,158,1) 83%,rgba(122,185,193,1) 100%); /* Opera 12+ */ background: -ms-radial-gradient(center, ellipse cover, rgba(98,208,214,1) 27%,rgba(0,126,158,1) 83%,rgba(122,185,193,1) 100%); /* IE10+ */ background: radial-gradient(ellipse at center, rgba(98,208,214,1) 27%,rgba(0,126,158,1) 83%,rgba(122,185,193,1) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#62d0d6', endColorstr='#7ab9c1',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */ top:850px; overflow:hidden; } #delfin { width: 530px; height: 370px; -webkit-transform: rotate(-300deg); -moz-transform: rotate(-300deg); -ms-transform: rotate(-300deg); -o-transform: rotate(-300deg); transform: rotate(-300deg); background: rgb(140, 142, 145); /* Old browsers */ border-right: 3px solid #B8B5B5; border-radius: 100%; position: absolute; float:left; left:633px; top:221px; box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -moz-box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -webkit-box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -o-box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -ms-box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -webkit-animation: nadar 21s alternate infinite; -moz-animation: nadar 21s alternate infinite; -o-animation: nadar 21s alternate infinite; } #delfin::before{ content:""; width: 421px; height: 330px; background: rgb(18, 98, 121); border-radius: 100%; position: absolute; left: 132px; top:162px; border-top: 50px solid #CEDCE7; } #delfin3{ width: 330px; height: 470px; -webkit-transform: rotate(-300deg); -moz-transform: rotate(-300deg); -ms-transform: rotate(-300deg); -o-transform: rotate(-300deg); transform: rotate(-300deg); background: rgb(140, 142, 145); /* Old browsers */ border-radius: 100%; position: absolute; float:left; left:251px; top:121px; box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -moz-box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -webkit-box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -o-box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -ms-box-shadow: 6px -12px 12px #C3BDD3 inset, 3px -3px 50px #281602 inset; -webkit-animation: nadar 21s alternate infinite; -moz-animation: nadar 21s alternate infinite; -o-animation: nadar 21s alternate infinite; } #delfin3::before{ content:""; width: 172px; height: 403px; background: rgb(18, 98, 121); -webkit-transform: rotate(-345deg); -moz-transform: rotate(-345deg); -ms-transform: rotate(-345deg); -o-transform: rotate(-345deg); transform: rotate(-345deg); -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; position: absolute; left: 132px; top:75px; border-left: 30px solid #CEDCE7; border-right:1px solid rgb(18, 98, 121); } #boca2{ -webkit-border-radius: 0px 30px 12px 0px; border-radius: 0px 30px 12px 0px; transform: rotate(-197deg); -moz-transform: rotate(-197deg); -webkit-transform: rotate(-197deg); -o-transform: rotate(-197deg); -ms-transform: rotate(-197deg); background:#8B8796; height: 93px; position: relative; width: 21px; top: 186px; left: 112px; box-shadow: 0px -3px 35px #8D8D8F inset; -moz-box-shadow: 0px -3px 35px #8D8D8F inset; -webkit-box-shadow: 0px -3px 35px #8D8D8F inset; -o-box-shadow: 0px -3px 35px #8D8D8F inset; -ms-box-shadow: 0px -3px 35px #8D8D8F inset border-left: 3px solid #DA9C9C; border-right: 12px solid rgb(187, 183, 202); border-left: 9px solid rgb(162, 162, 162); } #boca1{ -webkit-border-radius: 30px 0px 0px 12px; border-radius: 30px 0px 0px 12px; transform: rotate(-197deg); -moz-transform: rotate(-197deg); -webkit-transform: rotate(-197deg); -o-transform: rotate(-197deg); -ms-transform: rotate(-197deg); background:#8B8796; height: 93px; position: relative; border-right: 7px solid #DA9C9C; border-left: 12px solid rgb(143, 149, 162); width: 21px; box-shadow: -3px 3px -3px #3A2104 inset; -moz-box-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0