کاری که دکمه بالای بالای صفحه قرار بگیره <!DOCTYPE html> <html lang="fa"> <head> <meta…
- User
کاری که دکمه بالای بالای صفحه قرار بگیره
.animated-button { width: 300px; background-color: #1a1a2e; padding: 16px 32px; border-radius: 8px; color: white; font-size: 20px; border: none; cursor: pointer; position: relative; overflow: hidden; text-align: center; } .animated-button span { position: relative; z-index: 3; } .animated-button a { color: white; text-decoration: none; } .animated-button::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 188, 249, 0.5); z-index: 1; animation: calmWave 8s ease-in-out infinite; } .animated-button::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent); animation: wind 40s linear infinite; z-index: 0; } @keyframes wind { 0% { transform: translateX(0) translateY(0) rotate(0deg); } 100% { transform: translateX(100%) translateY(-100%) rotate(360deg); } } @keyframes calmWave { 0%, 100% { clip-path: polygon(0% 70%, 10% 73%, 20% 70%, 30% 73%, 40% 70%, 50% 73%, 60% 70%, 70% 73%, 80% 70%, 90% 73%, 100% 70%, 100% 100%, 0% 100%); } 50% { clip-path: polygon(0% 72%, 10% 75%, 20% 72%, 30% 75%, 40% 72%, 50% 75%, 60% 72%, 70% 75%, 80% 72%, 90% 75%, 100% 72%, 100% 100%, 0% 100%); } } .animated-button:hover { background-color: #0fbcf9; transform: scale(1.05); box-shadow: 0 0 20px rgba(15, 188, 249, 0.5); } </style> - Assistant
- User
- Assistant
- User
کشتی داخل دکمه باشه و دکمه اول صفحه باشه و وسط صفحه
- Assistant
- User
دکمه خراب میکند صفحه رو فقط دکمه خالی باشه به پس زمینه تغییر ایجاد نکنه
- Assistant
برای ایجاد دکمهای ساده که در بالای صفحه و به صورت افقی مرکز قرار دارد، بدون اینکه تغییراتی در پسزمینه صفحه ایجاد کند، میتوانید از کد زیر استفاده کنید. این کد، دکمهای ساده و بدون انیمیشنهای اضافی و تغییرات پسزمینه ایجاد میکند:
<!DOCTYPE html> <html lang="fa"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>دکمه چت با هوش مصنوعی</title> <style> body, html { margin: 0; padding: 0; font-family: 'Arial', sans-serif; display: flex; justify-content: center; align-items: flex-start; height: 100vh; background-color: #f0f0f0; /* رنگ پسزمینه ساده */ } .simple-button { margin-top: 20px; /* فاصله از بالای صفحه */ padding: 16px 32px; background-color: #1a1a2e; color: #fff; font-size: 20px; border: none; border-radius: 8px; cursor: pointer; text-align: center; text-decoration: none; display: inline-block; transition: background-color 0.3s ease, transform 0.3s ease; } .simple-button:hover { background-color: #0fbcf9; transform: scale(1.05); } </style> </head> <body> <a href="https://aisada.ir/chat" class="simple-button">چت با هوش مصنوعی</a> </body> </html> - User
با تمام انیمیشنه
- Assistant
- User
کشتی داخل دکمه باشه
- Assistant