Datasets:
Download data/test/codepen-XoYpMj-mzRvVO/full.html from anim2code/dataset: direct link, hf CLI and curl.
- Browser
- Download file 12.2 kB
-
https://huggingface.co/datasets/anim2code/dataset/resolve/main/data/test/codepen-XoYpMj-mzRvVO/full.html
- Command line
-
hf download hf://datasets/anim2code/dataset/data/test/codepen-XoYpMj-mzRvVO/full.html
-
curl -L -o full.html https://huggingface.co/datasets/anim2code/dataset/resolve/main/data/test/codepen-XoYpMj-mzRvVO/full.html
12.2 kB
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Anton"> | |
| <style>body { | |
| background: #fff; | |
| height: 100vh; | |
| overflow: hidden; | |
| display: flex; | |
| flex-wrap: wrap; | |
| font-family: 'Anton', sans-serif; | |
| justify-content: center; | |
| align-items: center; } | |
| .kirby { | |
| min-width: 450px; | |
| height: 450px; | |
| background: #fa9696; | |
| border-radius: 100%; | |
| border: 16px solid #000; | |
| box-sizing: border-box; | |
| animation: shake 2000ms ease-in-out infinite alternate; } | |
| .cheek { | |
| position: absolute; | |
| top: calc(50% - 15px); | |
| left: calc(50% - 30px); | |
| width: 60px; | |
| height: 30px; | |
| background: rgba(255, 0, 0, 0.5); | |
| border-radius: 100%; } | |
| .cheek.o-left { | |
| transform: translateX(-140px) rotateZ(-4deg); } | |
| .cheek.o-right { | |
| transform: translateX(140px) rotateZ(4deg); } | |
| .mouth { | |
| position: absolute; | |
| top: calc(50% - 5px); | |
| left: calc(50% - 5px); | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 100%; | |
| background: #000; | |
| transform: translateY(20px); } | |
| .eye { | |
| position: absolute; | |
| top: calc(50% - 150px); | |
| left: calc(50% - 25px); | |
| width: 50px; | |
| height: 120px; | |
| background: #000; | |
| border-radius: 999px; | |
| overflow: hidden; | |
| border: 6px solid #000; | |
| box-sizing: border-box; } | |
| .eye.o-left { | |
| transform: translateX(-100%) rotateZ(2deg); } | |
| .eye.o-right { | |
| transform: translateX(100%) rotateZ(-2deg); } | |
| .eye_reflect { | |
| position: absolute; | |
| left: 50%; | |
| top: 5%; | |
| width: 80%; | |
| height: 50%; | |
| background: rgba(255, 255, 255, 0.8); | |
| border-radius: 999px; | |
| transform: translateX(-50%); } | |
| .eye_deep { | |
| position: absolute; | |
| width: 100%; | |
| height: 60%; | |
| bottom: 0; | |
| filter: blur(10px) contrast(10); | |
| background: black; } | |
| .eye_deep_light { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| transform-origin: 50% 100%; } | |
| .eye_deep_light:nth-child(1) { | |
| animation: rotate 6534ms -4092ms linear infinite; } | |
| .eye_deep_light:nth-child(1) .graphic { | |
| position: absolute; | |
| top: 41%; | |
| left: 50%; | |
| width: 32px; | |
| height: 32px; | |
| background: #00368f; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(2) { | |
| animation: rotate 5946ms -2491ms linear infinite; } | |
| .eye_deep_light:nth-child(2) .graphic { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| width: 32px; | |
| height: 32px; | |
| background: #00a99f; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(3) { | |
| animation: rotate 5741ms -3677ms linear infinite; } | |
| .eye_deep_light:nth-child(3) .graphic { | |
| position: absolute; | |
| top: 30%; | |
| left: 50%; | |
| width: 29px; | |
| height: 29px; | |
| background: #007070; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(4) { | |
| animation: rotate 5348ms -9511ms linear infinite; } | |
| .eye_deep_light:nth-child(4) .graphic { | |
| position: absolute; | |
| top: 58%; | |
| left: 50%; | |
| width: 39px; | |
| height: 39px; | |
| background: #009ecd; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(5) { | |
| animation: rotate 7017ms -5161ms linear infinite; } | |
| .eye_deep_light:nth-child(5) .graphic { | |
| position: absolute; | |
| top: 38%; | |
| left: 50%; | |
| width: 31px; | |
| height: 31px; | |
| background: #004fb6; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(6) { | |
| animation: rotate 7046ms -6044ms linear infinite; } | |
| .eye_deep_light:nth-child(6) .graphic { | |
| position: absolute; | |
| top: 10%; | |
| left: 50%; | |
| width: 22px; | |
| height: 22px; | |
| background: #003f8b; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(7) { | |
| animation: rotate 6729ms -1870ms linear infinite; } | |
| .eye_deep_light:nth-child(7) .graphic { | |
| position: absolute; | |
| top: 60%; | |
| left: 50%; | |
| width: 29px; | |
| height: 29px; | |
| background: #00578c; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(8) { | |
| animation: rotate 7854ms -2196ms linear infinite; } | |
| .eye_deep_light:nth-child(8) .graphic { | |
| position: absolute; | |
| top: 33%; | |
| left: 50%; | |
| width: 43px; | |
| height: 43px; | |
| background: #008585; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(9) { | |
| animation: rotate 5663ms -1331ms linear infinite; } | |
| .eye_deep_light:nth-child(9) .graphic { | |
| position: absolute; | |
| top: 51%; | |
| left: 50%; | |
| width: 46px; | |
| height: 46px; | |
| background: #006a8c; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(10) { | |
| animation: rotate 3726ms -9326ms linear infinite; } | |
| .eye_deep_light:nth-child(10) .graphic { | |
| position: absolute; | |
| top: 41%; | |
| left: 50%; | |
| width: 25px; | |
| height: 25px; | |
| background: #0062af; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(11) { | |
| animation: rotate 4135ms -6353ms linear infinite; } | |
| .eye_deep_light:nth-child(11) .graphic { | |
| position: absolute; | |
| top: 33%; | |
| left: 50%; | |
| width: 26px; | |
| height: 26px; | |
| background: #005caa; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(12) { | |
| animation: rotate 4959ms -9577ms linear infinite; } | |
| .eye_deep_light:nth-child(12) .graphic { | |
| position: absolute; | |
| top: 19%; | |
| left: 50%; | |
| width: 24px; | |
| height: 24px; | |
| background: #00306c; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(13) { | |
| animation: rotate 5520ms -3211ms linear infinite; } | |
| .eye_deep_light:nth-child(13) .graphic { | |
| position: absolute; | |
| top: 37%; | |
| left: 50%; | |
| width: 38px; | |
| height: 38px; | |
| background: #006dac; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(14) { | |
| animation: rotate 6381ms -687ms linear infinite; } | |
| .eye_deep_light:nth-child(14) .graphic { | |
| position: absolute; | |
| top: 53%; | |
| left: 50%; | |
| width: 40px; | |
| height: 40px; | |
| background: #004294; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(15) { | |
| animation: rotate 3633ms -2942ms linear infinite; } | |
| .eye_deep_light:nth-child(15) .graphic { | |
| position: absolute; | |
| top: 45%; | |
| left: 50%; | |
| width: 22px; | |
| height: 22px; | |
| background: #0070ed; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(16) { | |
| animation: rotate 3244ms -8571ms linear infinite; } | |
| .eye_deep_light:nth-child(16) .graphic { | |
| position: absolute; | |
| top: 3%; | |
| left: 50%; | |
| width: 34px; | |
| height: 34px; | |
| background: #004384; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(17) { | |
| animation: rotate 4505ms -2766ms linear infinite; } | |
| .eye_deep_light:nth-child(17) .graphic { | |
| position: absolute; | |
| top: 21%; | |
| left: 50%; | |
| width: 46px; | |
| height: 46px; | |
| background: #0031bd; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(18) { | |
| animation: rotate 7238ms -439ms linear infinite; } | |
| .eye_deep_light:nth-child(18) .graphic { | |
| position: absolute; | |
| top: 24%; | |
| left: 50%; | |
| width: 39px; | |
| height: 39px; | |
| background: #00816c; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(19) { | |
| animation: rotate 7906ms -1804ms linear infinite; } | |
| .eye_deep_light:nth-child(19) .graphic { | |
| position: absolute; | |
| top: 10%; | |
| left: 50%; | |
| width: 36px; | |
| height: 36px; | |
| background: #00959f; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| .eye_deep_light:nth-child(20) { | |
| animation: rotate 3233ms -4160ms linear infinite; } | |
| .eye_deep_light:nth-child(20) .graphic { | |
| position: absolute; | |
| top: 1%; | |
| left: 50%; | |
| width: 34px; | |
| height: 34px; | |
| background: #0079e2; | |
| border-radius: 100%; | |
| transform: translateX(-50%); } | |
| @keyframes rotate { | |
| 0% { | |
| transform: rotateZ(0deg); } | |
| 100% { | |
| transform: rotateZ(360deg); } } | |
| @keyframes shake { | |
| 0% { | |
| transform: rotateZ(10deg); } | |
| 100% { | |
| transform: rotateZ(-10deg); } } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="kirby"><div class="cheek o-left"></div><div class="cheek o-right"></div><div class="mouth"></div><div class="eyes"><div class="eye o-left"><div class="eye_deep"><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div></div><div class="eye_reflect"></div></div><div class="eye o-right"><div class="eye_deep"><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div><div class="eye_deep_light"><div class="graphic"></div></div></div><div class="eye_reflect"></div></div></div></div> | |
| <script></script> | |
| </body> | |
| </html> |