Datasets:
Download data/test/codepen-DrPkOq-ExKzwwX/full.html from anim2code/dataset: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/datasets/anim2code/dataset/resolve/main/data/test/codepen-DrPkOq-ExKzwwX/full.html
- Command line
-
hf download hf://datasets/anim2code/dataset/data/test/codepen-DrPkOq-ExKzwwX/full.html
-
curl -L -o full.html https://huggingface.co/datasets/anim2code/dataset/resolve/main/data/test/codepen-DrPkOq-ExKzwwX/full.html
2 kB
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alphardex/aqua.css@1.5.5/dist/aqua.min.css"> | |
| <style>body { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| min-height: 100vh; | |
| margin: 0; | |
| background: var(--grey-color); } | |
| :root { | |
| --grey-color: #454344; } | |
| .sphere { | |
| --circle-rotate-duration: 3s; | |
| position: relative; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| width: 16rem; | |
| height: 16rem; | |
| transform-style: preserve-3d; | |
| perspective: 800px; | |
| animation: rotate-z calc(var(--circle-rotate-duration) * 6) linear both infinite; } | |
| .sphere .circles { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| transform: rotateZ(calc(var(--j) * 0.5turn / var(--circles-count))); } | |
| .sphere .circles .circle { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| border: 1px solid white; | |
| border-radius: 50%; | |
| animation: rotate-x calc(var(--circle-rotate-duration) * calc(1 + 0.125 * var(--i))) calc(var(--circle-rotate-duration) * var(--i) / var(--circles-count)) linear both infinite; } | |
| @keyframes rotate-z { | |
| from { | |
| transform: rotateZ(0); } | |
| to { | |
| transform: rotateZ(1turn); } } | |
| @keyframes rotate-x { | |
| from { | |
| transform: rotateX(0); } | |
| to { | |
| transform: rotateX(1turn); } } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="sphere" style="--circles-count: 3"> | |
| <div class="circles" style="--j: 1"> | |
| <div class="circle" style="--i: 1"></div> | |
| <div class="circle" style="--i: 2"></div> | |
| <div class="circle" style="--i: 3"></div> | |
| </div> | |
| <div class="circles" style="--j: 2"> | |
| <div class="circle" style="--i: 1"></div> | |
| <div class="circle" style="--i: 2"></div> | |
| <div class="circle" style="--i: 3"></div> | |
| </div> | |
| <div class="circles" style="--j: 3"> | |
| <div class="circle" style="--i: 1"></div> | |
| <div class="circle" style="--i: 2"></div> | |
| <div class="circle" style="--i: 3"></div> | |
| </div> | |
| </div> | |
| <script></script> | |
| </body> | |
| </html> |