12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- :host {
- display: block;
- }
- ion-content {
- --background: transparent;
- position: relative;
- height: 100vh;
- }
- .top-image {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 80%;
- overflow: hidden;
- z-index: 0;
- &::before {
- content: '';
- position: absolute;
- z-index: 1;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: url('/assets/img/漂流瓶.jpg') no-repeat center / cover;
- animation: wave-effect 5s linear infinite;
- filter: blur(10px);
- }
- }
- @keyframes wave-effect {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(-50%);
- }
- }
- .top-image img {
- width: 100%;
- height: 100%;
- object-fit: fill;
- clip-path: ellipse(140% 130% at 50% -30%);
- }
- .button-container {
- position: absolute;
- bottom: 15%;
- z-index: 2;
- }
- .left-button {
- left: 30px;
- }
- .right-button {
- right: 30px;
- }
- .button-container img {
- width: 60px;
- height: 60px;
- display: block;
- }
- .circular-button {
- width: 60px;
- height: 60px;
- border-radius: 50%;
- object-fit: cover;
- transform: scale(1.5);
- transform-origin: center;
- transition: transform 0.3s ease;
- }
- .circular-button:hover {
- transform: scale(1.6);
- }
-
-
-
-
|