一群泡泡升起动画效果
代码语言:html
所属分类:粒子
代码描述:一群泡泡升起动画效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; margin: 0; padding: 0; position: absolute; } body, html { width: 100%; height: 100%; overflow: hidden; background: #111; } .bubbles { top: 0; right: 0; left: 0; bottom: 0; perspective: 1200px; perspective-origin: 50% 50%; transform-style: preserve-3d; } .bubbles .bubble { border-radius: 100%; transform: translateY(800px) scale(0); opacity: 0.8; animation-name: bubbles; animation-iteration-count: infinite; animation-timing-function: ease-in-out; } .bubbles .bubble:before { content: ''; position: absolute; top: 10%; left: 5%; width: 90%; height: 50%; border-radius: 100%; filter: blur(5px); background: radial-gradient(circle at top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 58%); } .bubble:nth-of-type(1) { width: 77px; height: 77px; top: 17vh; left: 46vw; animation-delay: 0.0333333333s; animation-duration: 8s; } .bubble:nth-of-type(2) { width: 41px; height: 41px; top: 42vh; left: 24vw; animation-delay: 0.0666666667s; animation-duration: 15s; } .bubble:nth-of-type(3) { width: 21px; height: 21px; top: 14vh; left: 15vw; animation-delay: 0.1s; animation-duration: 4s; } .bubble:nth-of-type(4) { width: 77px; height: 77px; top: 44vh; left: 96vw; animation-delay: 0.1333333333s; animation-duration: 34s; } .bubble:nth-of-type(5) { width: 29px; height: 29px; top: 1vh; left: 78vw; animation-delay: 0.1666666667s; animation-duration: 23s; } .bubble:nth-of-type(6) { width: 55px; height: 55px; top: 55vh; left: 62vw; animation-delay: 0.2s; animation-duration: 23s; } .bubble:nth-of-type(7) { width: 94px; height: 94px; top: 51vh; left: 40vw; animation-delay: 0.2333333333s; animation-duration: 18s; } .bubble:nth-of-type(8) { width: 114px; height: 114px; top: 70vh; left: 17vw; animation-delay: 0.2666666667s; animation-duration: 22s; } .bubble:nth-of-type(9) { width: 39px; height: 39px; top: 69vh; left: 13vw; animation-delay: 0.3s; animation-duration: 19s; } .bubble:nth-of-type(10) { width: 87px; height: 87px; top: 21vh; left: 27vw; animation-delay: 0.3333333333s; animation-duration: 14s; } .bubble:nth-of-type(11) { width: 70px; height: 70px; top: 29vh; left: 94vw; animation-delay: 0.3666666667s; animation-duration: 13s; } .bubble:nth-of-type(12) { width: 84px; height: 84px; top: 97vh; left: 55vw; animation-delay: 0.4s; animation-duration: 22s; } .bubble:nth-of-type(13) { width: 73px; height: 73px; top: 41vh; left: 79vw; animation-delay: 0.4333333333s; animation-duration: 10s; } .bubble:nth-of-type(14) { width: 61px; height: 61px; top: 17vh; left: 8vw; animation-delay: 0.4666666667s; animation-duration: 24s; } .bubble:nth-of-type(15) { width: 105px; height: 105px; top: 67vh; left: 8vw; animation-delay: 0.5s; animation-duration: 16s; } .bubble:nth-of-type(16) { width: 118px; height: 118px; top: 56vh; left: 10vw; animation-delay: 0.5333333333s; animation-duration: 17s; } .bubble:nth-of-type(17) { width: 124px; height: 124px; top: 86vh; left: 22vw; animation-delay: 0.5666666667s; animation-duration: 11s; } .bubble:nth-of-type(18) { width: 23px; height: 23px; top: 19vh; left: 22vw; animation-delay: 0.6s; animation-duration: 7s; } .bubble:nth-of-type(19) { width: 75px; height: 75px; top: 16vh; left: 55vw; animation-delay: 0.6333333333s; animation-duration: 31s; } .bubble:nth-of-type(20) { width: 115px; height: 115px; top: 28vh; left: 19vw; animation-delay: 0.6666666667s; animation-duration: 31s; } .bubble:nth-of-type(21) { width: 122px; height: 122px; top: 74vh; left: 52vw; animation-delay: 0.7s; animation-duration: 37s; } .bubble:nth-of-type(22) { width: 106px; height: 106px; top: 31vh; left: 1vw; animation-delay: 0.7333333333s; animation-duration: 8s; } .bubble:nth-of-type(23) { width: 95px; height: 95px; top: 64vh; left: 1vw; animation-delay: 0.7666666667s; animation-duration: 28s; } .bubble:nth-of-type(24) { width: 16px; height: 16px; top: 25vh; left: 2vw; animation-delay: 0.8s; animation-duration: 7s; } .bubble:nth-of-type(25) { width: 87px; height: 87px; top: 69vh; left: 52vw; animation-delay: 0.8333333333s; animation-duration: 37s; } .bubble:nth-of-type(26) { width: 59px; height: 59px; top: 91vh; left: 11vw; animation-delay: 0.8666666667s; animation-duration: 31s; } .bubble:nth-of-type(27) { width: 31px; height: 31px; top: 38vh; left: 4vw; animation-delay: 0.9s; animation-duration: 16s; } .bubble:nth-of-type(28) { width: 24px; height: 24px; top: 59vh; left: 78vw; animation-delay: 0.9333333333s; animation-duration: 28s; } .bubble:nth-of-type(29) { width: 21px; height: 21px; top: 20vh; left: 84vw; animation-delay: 0.9666666667s; animation-duration: 12s; } .bubble:nth-of-type(30) { width: 97px; height: 97px; top: 85vh; left: 44vw; animation-delay: 1s; animation-duration: 24s; } .bubble:nth-of-type(31) { width: 10px; height: 10px; top: 12vh; left: 46vw; animation-delay: 1.0333333333s; animation-duration: 29s; } .bubble:nth-of-type(32) { width: 82px; height: 82px; top: 46vh; left: 87vw; animation-delay: 1.0666666667s; animation-duration: 28s; } .bubble:nth-of-type(33) { width: 41px; height: 41px; top: 82vh; left: 36vw; animation-delay: 1.1s; animation-duration: 30s; } .bubble:nth-of-type(34) { width: 130px; height: 130px; top: 30vh; left: 20vw; animation-delay: 1.1333333333s; animation-duration: 17s; } .bubble:nth-of-type(35) { width: 33px; height: 33px; top: 90vh; left: 25vw; animation-delay: 1.1666666667s; animation-duration: 37s; } .bubble:nth-of-type(36) { width: 95px; height: 95px; top: 15vh; left: 81vw; animation-delay: 1.2s; animation-duration: 18s; } .bubble:nth-of-type(37) { width: 97px; height: 97px; top: 21vh; left: 85vw; animation-delay: 1.2333333333s; animation-duration: 12s; } .bubble:nth-of-type(38) { width: 1px; height: 1px; top: 18vh; left: 51vw; animation-delay: 1.2666666667s; animation-duration: 5s; } .bubble:nth-of-type(39) { width: 57px; height: 57px; top: 59vh; left: 58vw; animation-delay: 1.3s; animation-duration: 3s; } .bubble:nth-of-type(40) { width: 125px; height: 125px; top: 87vh; left: 31vw; animation-delay: 1.3333333333s; animation-duration: 13s; } .bubble:nth-of-type(41) { width: 19px; height: 19px; top: 46vh; left: 75vw; animation-delay: 1.3666666667s; animation-duration: 36s; } .bubble:nth-of-type(42) { width: 47px; height: 47px; top: 51vh; left: 88vw; animation-delay: 1.4s; animation-duration: 37s; } .bubble:nth-of-type(43) { width: 77px; height: 77px; top: 67vh; left: 64vw; animation-delay: 1.4333333333s; animation-duration: 14s; } .bubble:nth-of-type(44) { width: 103px; height: 103px; top: 77vh; left: 75vw; animation-delay: 1.4666666667s; animation-duration: 15s; } .bubble:nth-of-type(45) { width: 9px; height: 9px; top: 19vh; left: 56vw; animation-delay: 1.5s; animation-duration: 22s; } .bubble:nth-of-type(46) { width: 121px; height: 121px; top: 9vh; left: 13vw; animation-delay: 1.5333333333s; animation-duration: 28s; } .bubble:nth-of-type(47) { width: 50px; height: 50px; top: 61vh; left: 57vw; animation-delay: 1.5666666667s; animation-duration: 36s; } .bubble:nth-of-type(48) { width: 39px; height: 39px; top: 62vh; left: 82vw; animation-delay: 1.6s; animation-duration: 31s; } .bubble:nth-of-type(49) { width: 84px; height: 84px; top: 2vh; left: 5vw; animation-delay: 1.6333333333s; animation-duration: 25s; } .bubble:nth-of-type(50) { width: 65px; height: 65px; top: 12vh; left: 13vw; animation-delay: 1.6666666667s; animation-duration: 25s; } .bubble:nth-of-type(51) { width: 51px; height: 51px; top: 1vh; left: 49vw; animation-delay: 1.7s; animation-duration: 26s; } .bubble:nth-of-type(52) { width: 91px; height: 91px; top: 65vh; left: 13vw; animation-delay: 1.7333333333s; animation-duration: 10s; } .bubble:nth-of-type(53) { width: 39px; height: 39px; top: 88vh; left: 1vw; animation-delay: 1.7666666667s; animation-duration: 17s; } .bubble:nth-of-type(54) { width: 85px; height: 85px; top: 50vh; left: 43vw; animation-delay: 1.8s; animation-duration: 9s; } .bubble:nth-of-type(55) { width: 9px; height: 9px; top: 48vh; left: 23vw; animation-delay: 1.8333333333s; animation-duration: 34s; } .bubble:nth-of-type(56) { width: 109px; height: 109px; top: 27vh; left: 99vw; animation-delay: 1.8666666667s; animation-duration: 5s; } .bubble:nth-of-type(57) { width: 9px; height: 9px; top: 96vh; left: 29vw; animation-delay: 1.9s; animation-duration: 4s; } .bubble:nth-of-type(58) { width: 83px; height: 83px; top: 54vh; left: 56vw; animation-delay: 1.9333333333s; animation-duration: 37s; } .bubble:nth-of-type(59) { width: 30px; height: 30px; top: 24vh; left: 93vw; animation-delay: 1.9666666667s; animation-duration: 11s; } .bubble:nth-of-type(60) { width: 95px; height: 95px; top: 52vh; left: 61vw; animation-delay: 2s; animation-duration: 33s; } .bubble:nth-of-type(61) { width: 71px; height: 71px; top: 43vh; left: 44vw; animation-delay: 2.0333333333s; animation-duration: 13s; } .bubble:nth-of-type(62) { width: 21px; height: 21px; top: 14vh; left: 40vw; animation-delay: 2.0666666667s; animation-duration: 23s; } .bubble:nth-of-type(63) { width: 106px; height: 106px; top: 24vh; left: 32vw; animation-delay: 2.1s; animation-duration: 24s; } .bubble:nth-of-type(64) { width: 125px; height: 125px; top: 22vh; left: 82vw; animation-delay: 2.1333333333s; animation-duration: 23s; } .bubble:nth-of-type(65) { width: 31px; height: 31px; top: 22vh; left: 52vw; animation-delay: 2.1666666667s; animation-duration: 28s; } .bubble:nth-of-type(66) { width: 20px; height: 20px; top: 37vh; left: 96vw; animation-delay: 2.2s; animation-duration: 32s; } .bubble:nth-of-type(67) { width: 34px; height: 34px; top: 89vh; left: 76vw; animation-delay: 2.2333333333s; animation-duration: 5s; } .bubble:nth-of-type(68) { width: 82px; height: 82px; top: 5vh; left: 34vw; animation-delay: 2.2666666667s; animation-duration: 6s; } .bubble:nth-of-type(69) { width: 108px; height: 108px; top: 37vh; left: 59vw; animation-delay: 2.3s; animation-duration: 29s; } .bubble:nth-of-type(70) { width: 106px; height: 106px; top: 86vh; left: 54vw; animation-delay: 2.3333333333s; animation-duration: 21s; } .bubble:nth-of-type(71) { width: 80px; height: 80px; top: 29vh; left: 60vw; animation-delay: 2.3666666667s; animation-duration: 9s; } .bubble:nth-of-type(72) { width: 25px; height: 25px; top: 96vh; left: 68vw; animation-delay: 2.4s; animation-duration: 25s; } .bubble:nth-of-type(73) { width: 59px; height: 59px; top: 63vh; left: 55vw; animation-delay: 2.4333333333s; animation-duration: 6s; } .bubble:nth-of-type(74) { width: 93px; height: 93px; top: 96vh; left: 35vw; animation-delay: 2.4666666667s; animation-duration: 5s; } .bubble:nth-of-type(75) { width: 114px; height: 114px; top: 17vh; left: 4vw; animation-delay: 2.5s; animation-duration: 12s; } .bubble:nth-of-type(76) { width: 81px; height: 81px; top: 30vh; left: 74vw; animation-delay: 2.5333333333s; animation-duration: 30s; } .bubble:nth-of-type(77) { width: 6px; height: 6px; top: 100vh; left: 11vw; animation-delay: 2.5666666667s; animation-duration: 17s; } .bubble:nth-of-type(78) { width: 36px; height: 36px; top: 46vh; left: 80vw; animation-delay: 2.6s; animation-duration: 5s; } .bubble:nth-of-type(79) { width: 9px; height: 9px; top: 7vh; left: 97vw; animation-delay: 2.6333333333s; animation-duration: 19s; } .bubble:nth-of-type(80) { width: 73px; height: 73px; top: 36vh; left: 15vw; animation-delay: 2.6666666667s; animation-duration: 37s; } .bubble:nth-of-type(81) { width: 38px; height: 38px; top: 77vh; left: 12vw; animation-delay: 2.7s; animation-duration: 32s; } .bubble:nth-of-type(82) { width: 110px; height: 110px; top: 44vh; left: 50vw; animation-delay: 2.7333333333s; animation-duration: 11s; } .bubble:nth-of-type(83) { width: 113px; height: 113px; top: 33vh; left: 38vw; animation-delay: 2.7666666667s; animation-duration: 10s; } .bubble:nth-of-type(84) { width: 103px; height: 103px; top: 4vh; left: 86vw; animation-delay: 2.8s; animation-duration: 26s; } .bubble:nth-of-type(85) { width: 118px; height:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0