anya-ji's picture
Duplicate from anim2code/dataset
2086c64
Raw History Blame Contribute Delete
14.9 kB
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Baloo+Tamma+2&amp;display=swap">
<style>body {
background: #000;
height: 100vh;
overflow: hidden;
display: flex;
font-family: 'Baloo Tamma 2', cursive;
justify-content: center;
align-items: center;
perspective: 1000px; }
div {
position: absolute;
transform-style: preserve-3d; }
.text {
top: 50%;
left: 50%;
color: #5082dc;
font-size: 5rem;
letter-spacing: 50px;
animation: rotateY 15s ease-in-out infinite; }
.shake {
animation: shake 25s ease-in-out infinite; }
.title {
transform: translate(-50%, -50%); }
.world {
width: 100%;
height: 100%; }
.camera {
width: 100%;
height: 100%;
transition-duration: 2s; }
.filters {
width: 100%;
height: 100%; }
.filter {
top: -100%;
left: -100%;
width: 300%;
height: 300%;
background: rgba(0, 0, 0, 0.13); }
.filter:nth-child(1) {
transform: translateZ(-180px); }
.filter:nth-child(2) {
transform: translateZ(-160px); }
.filter:nth-child(3) {
transform: translateZ(-140px); }
.filter:nth-child(4) {
transform: translateZ(-120px); }
.filter:nth-child(5) {
transform: translateZ(-100px); }
.filter:nth-child(6) {
transform: translateZ(-80px); }
.filter:nth-child(7) {
transform: translateZ(-60px); }
.filter:nth-child(8) {
transform: translateZ(-40px); }
.filter:nth-child(9) {
transform: translateZ(-20px); }
.filter:nth-child(10) {
transform: translateZ(0px); }
.filter:nth-child(11) {
transform: translateZ(20px); }
.filter:nth-child(12) {
transform: translateZ(40px); }
.filter:nth-child(13) {
transform: translateZ(60px); }
.filter:nth-child(14) {
transform: translateZ(80px); }
.filter:nth-child(15) {
transform: translateZ(100px); }
.filter:nth-child(16) {
transform: translateZ(120px); }
.filter:nth-child(17) {
transform: translateZ(140px); }
.filter:nth-child(18) {
transform: translateZ(160px); }
.filter:nth-child(19) {
transform: translateZ(180px); }
.filter:nth-child(20) {
transform: translateZ(200px); }
.drops {
width: 100%;
height: 100%; }
.drop {
top: 0;
animation: drop 10s linear infinite reverse; }
.drop:nth-child(1) {
left: 73%;
animation-delay: -48156ms;
animation-duration: 17857ms; }
.drop:nth-child(1) .bubble {
animation-delay: -65335ms; }
.drop:nth-child(2) {
left: 74%;
animation-delay: -19334ms;
animation-duration: 16342ms; }
.drop:nth-child(2) .bubble {
animation-delay: -8235ms; }
.drop:nth-child(3) {
left: 56%;
animation-delay: -59229ms;
animation-duration: 14663ms; }
.drop:nth-child(3) .bubble {
animation-delay: -63583ms; }
.drop:nth-child(4) {
left: 2%;
animation-delay: -16847ms;
animation-duration: 14043ms; }
.drop:nth-child(4) .bubble {
animation-delay: -27771ms; }
.drop:nth-child(5) {
left: 50%;
animation-delay: -37134ms;
animation-duration: 12133ms; }
.drop:nth-child(5) .bubble {
animation-delay: -25939ms; }
.drop:nth-child(6) {
left: 72%;
animation-delay: -84061ms;
animation-duration: 10803ms; }
.drop:nth-child(6) .bubble {
animation-delay: -60930ms; }
.drop:nth-child(7) {
left: 2%;
animation-delay: -73412ms;
animation-duration: 14699ms; }
.drop:nth-child(7) .bubble {
animation-delay: -67152ms; }
.drop:nth-child(8) {
left: 46%;
animation-delay: -13794ms;
animation-duration: 13003ms; }
.drop:nth-child(8) .bubble {
animation-delay: -96193ms; }
.drop:nth-child(9) {
left: 17%;
animation-delay: -76210ms;
animation-duration: 15634ms; }
.drop:nth-child(9) .bubble {
animation-delay: -83167ms; }
.drop:nth-child(10) {
left: 4%;
animation-delay: -38928ms;
animation-duration: 11093ms; }
.drop:nth-child(10) .bubble {
animation-delay: -49940ms; }
.drop:nth-child(11) {
left: 50%;
animation-delay: -6470ms;
animation-duration: 15945ms; }
.drop:nth-child(11) .bubble {
animation-delay: -81035ms; }
.drop:nth-child(12) {
left: 32%;
animation-delay: -37447ms;
animation-duration: 12226ms; }
.drop:nth-child(12) .bubble {
animation-delay: -15430ms; }
.drop:nth-child(13) {
left: 58%;
animation-delay: -99650ms;
animation-duration: 15416ms; }
.drop:nth-child(13) .bubble {
animation-delay: -6705ms; }
.drop:nth-child(14) {
left: 78%;
animation-delay: -8349ms;
animation-duration: 16482ms; }
.drop:nth-child(14) .bubble {
animation-delay: -15083ms; }
.drop:nth-child(15) {
left: 67%;
animation-delay: -80047ms;
animation-duration: 17341ms; }
.drop:nth-child(15) .bubble {
animation-delay: -53571ms; }
.drop:nth-child(16) {
left: 39%;
animation-delay: -15243ms;
animation-duration: 15974ms; }
.drop:nth-child(16) .bubble {
animation-delay: -87496ms; }
.drop:nth-child(17) {
left: 10%;
animation-delay: -94792ms;
animation-duration: 13074ms; }
.drop:nth-child(17) .bubble {
animation-delay: -32245ms; }
.drop:nth-child(18) {
left: 34%;
animation-delay: -27445ms;
animation-duration: 16734ms; }
.drop:nth-child(18) .bubble {
animation-delay: -86950ms; }
.drop:nth-child(19) {
left: 63%;
animation-delay: -18576ms;
animation-duration: 15675ms; }
.drop:nth-child(19) .bubble {
animation-delay: -69296ms; }
.drop:nth-child(20) {
left: 97%;
animation-delay: -59793ms;
animation-duration: 10032ms; }
.drop:nth-child(20) .bubble {
animation-delay: -70689ms; }
.drop:nth-child(21) {
left: 54%;
animation-delay: -41118ms;
animation-duration: 14871ms; }
.drop:nth-child(21) .bubble {
animation-delay: -31269ms; }
.drop:nth-child(22) {
left: 75%;
animation-delay: -51825ms;
animation-duration: 12802ms; }
.drop:nth-child(22) .bubble {
animation-delay: -65723ms; }
.drop:nth-child(23) {
left: 14%;
animation-delay: -77344ms;
animation-duration: 13322ms; }
.drop:nth-child(23) .bubble {
animation-delay: -67997ms; }
.drop:nth-child(24) {
left: 41%;
animation-delay: -9896ms;
animation-duration: 15051ms; }
.drop:nth-child(24) .bubble {
animation-delay: -48497ms; }
.drop:nth-child(25) {
left: 91%;
animation-delay: -96672ms;
animation-duration: 15668ms; }
.drop:nth-child(25) .bubble {
animation-delay: -2004ms; }
.drop:nth-child(26) {
left: 78%;
animation-delay: -47195ms;
animation-duration: 15447ms; }
.drop:nth-child(26) .bubble {
animation-delay: -62260ms; }
.drop:nth-child(27) {
left: 46%;
animation-delay: -78903ms;
animation-duration: 10288ms; }
.drop:nth-child(27) .bubble {
animation-delay: -5907ms; }
.drop:nth-child(28) {
left: 17%;
animation-delay: -68044ms;
animation-duration: 14407ms; }
.drop:nth-child(28) .bubble {
animation-delay: -80700ms; }
.drop:nth-child(29) {
left: 29%;
animation-delay: -73265ms;
animation-duration: 15482ms; }
.drop:nth-child(29) .bubble {
animation-delay: -6620ms; }
.drop:nth-child(30) {
left: 45%;
animation-delay: -78317ms;
animation-duration: 10953ms; }
.drop:nth-child(30) .bubble {
animation-delay: -79677ms; }
.drop:nth-child(31) {
left: 32%;
animation-delay: -46848ms;
animation-duration: 15579ms; }
.drop:nth-child(31) .bubble {
animation-delay: -43972ms; }
.drop:nth-child(32) {
left: 79%;
animation-delay: -90984ms;
animation-duration: 14283ms; }
.drop:nth-child(32) .bubble {
animation-delay: -1228ms; }
.drop:nth-child(33) {
left: 82%;
animation-delay: -72359ms;
animation-duration: 10815ms; }
.drop:nth-child(33) .bubble {
animation-delay: -45057ms; }
.drop:nth-child(34) {
left: 22%;
animation-delay: -86739ms;
animation-duration: 14204ms; }
.drop:nth-child(34) .bubble {
animation-delay: -34019ms; }
.drop:nth-child(35) {
left: 28%;
animation-delay: -59396ms;
animation-duration: 17248ms; }
.drop:nth-child(35) .bubble {
animation-delay: -80819ms; }
.drop:nth-child(36) {
left: 65%;
animation-delay: -28631ms;
animation-duration: 14873ms; }
.drop:nth-child(36) .bubble {
animation-delay: -28611ms; }
.drop:nth-child(37) {
left: 61%;
animation-delay: -53079ms;
animation-duration: 12579ms; }
.drop:nth-child(37) .bubble {
animation-delay: -25739ms; }
.drop:nth-child(38) {
left: 96%;
animation-delay: -14528ms;
animation-duration: 13751ms; }
.drop:nth-child(38) .bubble {
animation-delay: -30074ms; }
.drop:nth-child(39) {
left: 38%;
animation-delay: -97223ms;
animation-duration: 10271ms; }
.drop:nth-child(39) .bubble {
animation-delay: -42575ms; }
.drop:nth-child(40) {
left: 52%;
animation-delay: -87514ms;
animation-duration: 14878ms; }
.drop:nth-child(40) .bubble {
animation-delay: -69704ms; }
.drop:nth-child(41) {
left: 69%;
animation-delay: -78027ms;
animation-duration: 12891ms; }
.drop:nth-child(41) .bubble {
animation-delay: -71784ms; }
.drop:nth-child(42) {
left: 2%;
animation-delay: -29808ms;
animation-duration: 11301ms; }
.drop:nth-child(42) .bubble {
animation-delay: -28266ms; }
.drop:nth-child(43) {
left: 50%;
animation-delay: -49609ms;
animation-duration: 16030ms; }
.drop:nth-child(43) .bubble {
animation-delay: -20846ms; }
.drop:nth-child(44) {
left: 12%;
animation-delay: -91313ms;
animation-duration: 10553ms; }
.drop:nth-child(44) .bubble {
animation-delay: -84933ms; }
.drop:nth-child(45) {
left: 91%;
animation-delay: -62549ms;
animation-duration: 11203ms; }
.drop:nth-child(45) .bubble {
animation-delay: -31092ms; }
.drop:nth-child(46) {
left: 42%;
animation-delay: -55465ms;
animation-duration: 16453ms; }
.drop:nth-child(46) .bubble {
animation-delay: -90021ms; }
.drop:nth-child(47) {
left: 89%;
animation-delay: -65985ms;
animation-duration: 11268ms; }
.drop:nth-child(47) .bubble {
animation-delay: -8ms; }
.drop:nth-child(48) {
left: 83%;
animation-delay: -33641ms;
animation-duration: 13094ms; }
.drop:nth-child(48) .bubble {
animation-delay: -15123ms; }
.drop:nth-child(49) {
left: 37%;
animation-delay: -5222ms;
animation-duration: 10404ms; }
.drop:nth-child(49) .bubble {
animation-delay: -96437ms; }
.drop:nth-child(50) {
left: 12%;
animation-delay: -41753ms;
animation-duration: 16989ms; }
.drop:nth-child(50) .bubble {
animation-delay: -87269ms; }
.bubble {
top: 50%;
left: 50%;
animation: rotateY 5s linear infinite; }
.graphic {
top: calc(50% - 25px);
left: calc(50% - 25px);
width: 50px;
height: 50px;
background: #82a0c8;
border-radius: 100%;
transform: translateZ(210px); }
@keyframes depth {
0% {
transform: translateZ(200px); }
100% {
transform: translateZ(-200px); } }
@keyframes rotateY {
0% {
transform: rotateY(0deg); }
100% {
transform: rotateY(360deg); } }
@keyframes drop {
0% {
transform: translateY(-100px); }
100% {
transform: translateY(calc(100vh + 100px)); } }
@keyframes shake {
0% {
transform: translateY(40px) rotateX(20deg); }
50% {
transform: translateY(-40px) rotateX(-20deg); }
100% {
transform: translateY(40px) rotateX(20deg); } }
</style>
</head>
<body>
<div class="world"><div class="camera -y"><div class="camera -x"><div class="camera -z"><div class="filters"><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div><div class="filter"></div></div><div class="text"><div class="shake"><div class="title">Depth</div></div></div><div class="drops"><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div><div class="drop"><div class="bubble"><div class="graphic"></div></div></div></div></div></div></div></div>
<script></script>
</body>
</html>