Spaces:
Running
Running
Download assets/ui/floating/code.txt from u11310019/Web-Generator: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/spaces/u11310019/Web-Generator/resolve/main/assets/ui/floating/code.txt
- Command line
-
hf download hf://spaces/u11310019/Web-Generator/assets/ui/floating/code.txt
-
curl -L -o code.txt https://huggingface.co/spaces/u11310019/Web-Generator/resolve/main/assets/ui/floating/code.txt
1.35 kB
| <!DOCTYPE html> | |
| <html lang="zh-Hant"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>3D懸浮發光卡片</title> | |
| <style> | |
| /* From Uiverse.io by Saad3092003 */ | |
| .one-div { | |
| position: relative; | |
| height: 250px; | |
| width: 200px; | |
| background-color: rgb(15, 15, 15); | |
| transform-style: preserve-3d; | |
| animation: rot 2s infinite ease; | |
| border-radius: 20px; | |
| box-shadow: 0 0 50px 0px, inset 0 0 90px 0px; | |
| color: white; | |
| transition: 1s; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .one-div .text { | |
| opacity: 0; | |
| transition: all 0.5s; | |
| } | |
| .one-div:hover.one-div .text { | |
| scale: 1.2; | |
| opacity: 0.7; | |
| } | |
| .one-div:hover { | |
| box-shadow: 0 0 50px 0px, inset 5px 5px 20px 0px black; | |
| } | |
| @keyframes rot { | |
| 0% { | |
| transform: rotateX(-15deg) translateY(0px); | |
| } | |
| 50% { | |
| transform: rotateX(-15deg) translateY(-10px); | |
| } | |
| 100% { | |
| transform: rotateX(-15deg) translateY(0px); | |
| } | |
| } | |
| </style> | |
| <style> | |
| body { | |
| min-height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| background-color: #0b0b0e; | |
| margin: 0; | |
| perspective: 800px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- From Uiverse.io by Saad3092003 --> | |
| <div class="one-div"> | |
| <div class="text">Hello There</div> | |
| </div> | |
| </body> | |
| </html> | |