سلام
- User
سلام
- Assistant
سلام! چطور میتوانم کمکتان کنم؟
- User
/* نوشته تغییر صدا با هوش مصنوعی */ #ai-text { margin: 20px 0; font-size: 2em; color: #fff; text-align: center; text-shadow: 0 0 10px rgba(255, 255, 255, 0.7); animation: textGlow 3s infinite alternate; position: relative; z-index: 2; } @keyframes textGlow { from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); } to { text-shadow: 0 0 20px rgba(255, 255, 255, 1); } } /* دکمه شروع تغییر صدا با تم هوش مصنوعی */ .start-button { display: inline-block; margin: 20px auto; padding: 10px 30px; font-size: 1.5em; background: linear-gradient(90deg, #0fbcf9, #0be881); color: #fff; border: 2px solid #fff; border-radius: 50px; cursor: pointer; animation: buttonGlow 2s infinite ease-in-out, borderAnimation 3s infinite; transition: transform 0.3s ease, background 0.3s ease; box-shadow: 0 0 15px rgba(15, 188, 249, 0.7); position: relative; z-index: 2; text-decoration: none; text-align: center; } @keyframes borderAnimation { 0%, 100% { border-color: transparent; } 50% { border-color: #fff; } } .start-button:hover { transform: scale(1.1); background: linear-gradient(90deg, #0be881, #0fbcf9); } @keyframes buttonGlow { 0%, 100% { box-shadow: 0 0 10px rgba(15, 188, 249, 0.7); } 50% { box-shadow: 0 0 20px rgba(11, 232, 129, 1); } } /* دکمههای جدید با انیمیشن */ .animated-button, .night-sky-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; display: inline-block; text-align: center; margin: 20px 10px; } /* استایل مخصوص دکمه چت با هوش مصنوعی */ .animated-button { animation: pulse 3s infinite; } .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, strongWave 8s ease-in-out 8s forwards, calmWave 8s ease-in-out 16s forwards 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%); } } /* انیمیشن موجهای شدید */ @keyframes strongWave { 0% { 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%); } 25% { clip-path: polygon(0% 60%, 10% 65%, 20% 60%, 30% 65%, 40% 60%, 50% 65%, 60% 60%, 70% 65%, 80% 60%, 90% 65%, 100% 60%, 100% 100%, 0% 100%); } 50% { clip-path: polygon(0% 50%, 10% 55%, 20% 50%, 30% 55%, 40% 50%, 50% 55%, 60% 50%, 70% 55%, 80% 50%, 90% 55%, 100% 50%, 100% 100%, 0% 100%); } 75% { clip-path: polygon(0% 60%, 10% 65%, 20% 60%, 30% 65%, 40% 60%, 50% 65%, 60% 60%, 70% 65%, 80% 60%, 90% 65%, 100% 60%, 100% 100%, 0% 100%); } 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%); } } .animated-button:hover { background-color: #0fbcf9; transform: scale(1.05); box-shadow: 0 0 20px rgba(15, 188, 249, 0.5); } /* کشتی و مرد */ .ship { position: absolute; bottom: 25%; left: -20%; width: 30px; height: 30px; z-index: 2; animation: shipMove 16s linear infinite; } .boat { position: absolute; bottom: 0; left: 5px; width: 20px; height: 10px; background: sienna; border-radius: 0 0 5px 5px; } .sail { position: absolute; bottom: 10px; left: 7px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid white; } .man { position: absolute; bottom: 10px; left: 12px; width: 5px; height: 10px; background: black; } .paddle { position: absolute; bottom: 5px; left: 15px; width: 15px; height: 2px; background: brown; transform-origin: left center; animation: paddleMove 1s linear infinite; } @keyframes paddleMove { 0% { transform: rotate(0deg); } 50% { transform: rotate(45deg); } 100% { transform: rotate(0deg); } } @keyframes shipMove { 0% { left: -20%; } 100% { left: 100%; } } /* بخش دانلود برنامه */ #download { padding: 30px 20px; text-align: center; background-color: #1a1a2e; position: relative; overflow: hidden; border-radius: 3%; margin-top: 40px; } /* افکت نورانی در بخش دانلود */ #download::before { content: ''; position: absolute; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(15, 188, 249, 0.2), transparent); animation: glowEffect 5s infinite alternate; } @keyframes glowEffect { from { transform: scale(1); opacity: 0.5; } to { transform: scale(1.5); opacity: 1; } } #download h2 { font-size: 2em; color: #0fbcf9; text-shadow: 0 0 10px rgba(15, 188, 249, 0.7); animation: fadeIn 2s ease-in-out; position: relative; z-index: 1; margin-bottom: 10px; } #download p { position: relative; z-index: 1; margin-bottom: 20px; } /* استایل برای آیکن و متن جدید */ #download .extra-text { font-size: 1em; color: #fff; margin-top: 10px; position: relative; z-index: 1; } #download .logo-image { width: 80px; height: auto; margin-top: 10px; position: relative; z-index: 1; border-radius: 5%; animation: float 3s infinite ease-in-out; } /* انیمیشن شناور لوگو */ @keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } } .download-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 20px; position: relative; z-index: 1; } .download-button { width: 180px; padding: 10px 0; font-size: 1em; background: linear-gradient(90deg, #0be881, #0fbcf9); background-size: 200% 200%; color: #0d0d2b; border: none; border-radius: 5px; cursor: pointer; animation: gradientShift 4s ease infinite; transition: background-color 0.3s ease, transform 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; } @keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .download-button:hover { background-color: #0fbcf9; transform: scale(1.05); } /* افکت محو شدن متن */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* دکمه آسمان پرستاره با سیارات متعدد */ .night-sky-button { background-color: #000033; padding: 16px 32px; border-radius: 8px; color: #ffffff; font-size: 20px; border: none; cursor: pointer; position: relative; overflow: hidden; display: inline-block; text-align: center; margin: 20px 10px; box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); } .night-sky-button a { color: #ffffff; text-decoration: none; position: relative; z-index: 2; } /* ایجاد پسزمینه آسمان پرستاره با سیارات متعدد */ .night-sky-button::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: transparent url('data:image/svg+xml,%3Csvg%20width%3D%22200%22%20height%3D%22200%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%0A%3Cdefs%3E%0A%20%20%3C!--%20تعریف%20گرادیانتها%20برای%20سیارات%20--%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient1%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23ff4500%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffff00%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient2%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%238a2be2%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%234b0082%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient3%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%2300ced1%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%231e90ff%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient4%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23ff1493%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ff69b4%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient5%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%2300ff7f%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%237fff00%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient6%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23dc143c%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ff4500%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient7%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23ffd700%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffa500%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient8%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%2300bfff%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%231e90ff%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient9%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23adff2f%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%237fff00%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient10%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23ff69b4%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ff1493%22/%3E%0A%20%20%3C/radialGradient%3E%0A%3C/defs%3E%0A%3C!--%20ستارهها%20--%3E%0A%3Cg%20fill%3D%22%23ffffff%22%3E%0A%20%20%3C!--%20افزایش%20تعداد%20ستارهها%20به%2050%20--%3E%0A%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2220%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%2220%22%20cy%3D%2240%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%2260%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%2240%22%20cy%3D%2280%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%2250%22%20cy%3D%22100%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%2260%22%20cy%3D%22120%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%2270%22%20cy%3D%22140%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%2280%22%20cy%3D%22160%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2240%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%22100%22%20cy%3D%2260%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%22110%22%20cy%3D%2280%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%22120%22%20cy%3D%22100%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%22130%22%20cy%3D%22120%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%22140%22%20cy%3D%22140%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%22150%22%20cy%3D%2260%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%22160%22%20cy%3D%2280%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%22170%22%20cy%3D%22100%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%22180%22%20cy%3D%22120%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%22190%22%20cy%3D%22140%22%20r%3D%220.9%22/%3E%0A%20%20%3C!--%20بیشتر%20ستارهها%20را%20اضافه%20کنید%20--%3E%0A%3C/g%3E%0A%3CanimateTransform%20attributeName%3D%22transform%22%20type%3D%22translate%22%20from%3D%220%200%22%20to%3D%22-200%200%22%20dur%3D%2250s%22%20repeatCount%3D%22indefinite%22/%3E%0A%3C!--%20سیارات%20--%3E%0A%3Cg%3E%0A%20%20%3Ccircle%20cx%3D%22250%22%20cy%3D%2250%22%20r%3D%225%22%20fill%3D%22url(%23planetGradient1)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2230s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20-250%200%20C%20-150%20-50%20150%2050%20250%200%22/%3E%0A%20%20%3C/circle%3E%0A%20%20%3Ccircle%20cx%3D%22-50%22%20cy%3D%2280%22%20r%3D%224%22%20fill%3D%22url(%23planetGradient2)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2235s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20250%200%20C%20150%2050%20-150%20-50%20-250%200%22/%3E%0A%20%20%3C/circle%3E%0A%20%20%3Ccircle%20cx%3D%22250%22%20cy%3D%22110%22%20r%3D%225%22%20fill%3D%22url(%23planetGradient3)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2240s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20-250%200%20C%20-150%2050%20150%20-50%20250%200%22/%3E%0A%20%20%3C/circle%3E%0A%20%20%3Ccircle%20cx%3D%22-50%22%20cy%3D%22140%22%20r%3D%224%22%20fill%3D%22url(%23planetGradient4)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2232s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20250%200%20C%20150%20-50%20-150%2050%20-250%200%22/%3E%0A%20%20%3C/circle%3E%0A%20%20%3C!--%20بقیه%20سیارات%20--%3E%0A%20%20%3Ccircle%20cx%3D%22250%22%20cy%3D%2270%22%20r%3D%225%22%20fill%3D%22url(%23planetGradient5)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2238s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20-250%200%20C%20-150%20-50%20150%2050%20250%200%22/%3E%0A%20%20%3C/circle%3E%0A%20%20%3Ccircle%20cx%3D%22-50%22%20cy%3D%22100%22%20r%3D%224%22%20fill%3D%22url(%23planetGradient6)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2242s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20250%200%20C%20150%2050%20-150%20-50%20-250%200%22/%3E%0A%20%20%3C/circle%3E%0A%20%20%3Ccircle%20cx%3D%22250%22%20cy%3D%22130%22%20r%3D%225%22%20fill%3D%22url(%23planetGradient7)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2236s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20-250%200%20C%20-150%2050%20150%20-50%20250%200%22/%3E%0A%20%20%3C/circle%3E%0A%20%20%3Ccircle%20cx%3D%22-50%22%20cy%3D%22160%22%20r%3D%224%22%20fill%3D%22url(%23planetGradient8)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2240s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20250%200%20C%20150%20-50%20-150%2050%20-250%200%22/%3E%0A%20%20%3C/circle%3E%0A%20%20%3Ccircle%20cx%3D%22250%22%20cy%3D%2290%22%20r%3D%225%22%20fill%3D%22url(%23planetGradient9)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2234s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20-250%200%20C%20-150%20-50%20150%2050%20250%200%22/%3E%0A%20%20%3C/circle%3E%0A%20%20%3Ccircle%20cx%3D%22-50%22%20cy%3D%22120%22%20r%3D%224%22%20fill%3D%22url(%23planetGradient10)%22%3E%0A%20%20%20%20%3CanimateMotion%20dur%3D%2244s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20250%200%20C%20150%2050%20-150%20-50%20-250%200%22/%3E%0A%20%20%3C/circle%3E%0A%3C/g%3E%0A%3C!--%20شهابسنگها%20--%3E%0A%3Cline%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%2215%22%20y2%3D%220%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221%22%3E%0A%20%20%3CanimateMotion%20dur%3D%2215s%22%20repeatCount%3D%22indefinite%22%20path%3D%22M%20200%20200%20L%20-200%20-200%22%20begin%3D%225s%22/%3E%0A%3C/line%3E%0A%3C/svg%3E') repeat; background-size: 200px 200px; animation: twinkling 50s linear infinite; z-index: 1; } /* انیمیشن حرکت ستارهها */ @keyframes twinkling { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-200px, 0, 0); } } .night-sky-button:hover { background-color: #000044; transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 255, 255, 0.7); } /* مدیا کوئری برای حالت موبایل */ @media (max-width: 768px) { .start-button, .animated-button, .night-sky-button { width: 80%; font-size: 1em; } .download-button { width: 140px; padding: 8px 0; font-size: 0.9em; } } </style> فقط کد دکمه چت با هوش مصنوعی رو با انیمیشنهاش جدا کن بفرست - Assistant
البته، در اینجا کد مربوط به دکمه چت با هوش مصنوعی به همراه انیمیشنهای آن آورده شده است:
<div class="animated-button"><a href="https://apperio.ir/mobile/0V9S-0FG0-7Q3H-GKD4#/nav/page-builder202"> <span>چت با هوش مصنوعی</span> </a> <div class="ship"> <div class="boat"></div> <div class="sail"></div> <div class="man"></div> <div class="paddle"></div> </div> </div> <style> .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; display: inline-block; text-align: center; margin: 20px 10px; animation: pulse 3s infinite; } .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, strongWave 8s ease-in-out 8s forwards, calmWave 8s ease-in-out 16s forwards 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%); } } @keyframes strongWave { 0% { 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%); } 25% { clip-path: polygon(0% 60%, 10% 65%, 20% 60%, 30% 65%, 40% 60%, 50% 65%, 60% 60%, 70% 65%, 80% 60%, 90% 65%, 100% 60%, 100% 100%, 0% 100%); } 50% { clip-path: polygon(0% 50%, 10% 55%, 20% 50%, 30% 55%, 40% 50%, 50% 55%, 60% 50%, 70% 55%, 80% 50%, 90% 55%, 100% 50%, 100% 100%, 0% 100%); } 75% { clip-path: polygon(0% 60%, 10% 65%, 20% 60%, 30% 65%, 40% 60%, 50% 65%, 60% 60%, 70% 65%, 80% 60%, 90% 65%, 100% 60%, 100% 100%, 0% 100%); } 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%); } } .animated-button:hover { background-color: #0fbcf9; transform: scale(1.05); box-shadow: 0 0 20px rgba(15, 188, 249, 0.5); } .ship { position: absolute; bottom: 25%; left: -20%; width: 30px; height: 30px; z-index: 2; animation: shipMove 16s linear infinite; } .boat { position: absolute; bottom: 0; left: 5px; width: 20px; height: 10px; background: sienna; border-radius: 0 0 5px 5px; } .sail { position: absolute; bottom: 10px; left: 7px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid white; } .man { position: absolute; bottom: 10px; left: 12px; width: 5px; height: 10px; background: black; } .paddle { position: absolute; bottom: 5px; left: 15px; width: 15px; height: 2px; background: brown; transform-origin: left center; animation: paddleMove 1s linear infinite; } @keyframes paddleMove { 0% { transform: rotate(0deg); } 50% { transform: rotate(45deg); } 100% { transform: rotate(0deg); } } @keyframes shipMove { 0% { left: -20%; } 100% { left: 100%; } } </style>این کد شامل استایلها و انیمیشنهای مرتبط با دکمه "چت با هوش مصنوعی" است.
- User
دکمه باید وسط صفحه قرار بگیره
- Assistant
برای قرار دادن دکمه در وسط صفحه، میتوانید از استایلهای CSS استفاده کنید تا آن را هم به صورت افقی و هم به صورت عمودی در مرکز قرار دهید. در اینجا کد بهروزشده برای دکمه "چت با هوش مصنوعی" آورده شده است که باعث میشود دکمه در وسط صفحه جای بگیرد:
<div class="center-container"> <div class="animated-button"> <a href="https://apperio.ir/mobile/0V9S-0FG0-7Q3H-GKD4#/nav/page-builder202"> <span>چت با هوش مصنوعی</span> </a> <div class="ship"> <div class="boat"></div> <div class="sail"></div> <div class="man"></div> <div class="paddle"></div> </div> </div> </div> <style> html, body { height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; background-color: #0d0d2b; } .center-container { display: flex; align-items: center; justify-content: center; height: 100vh; width: 100%; } .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; display: inline-block; text-align: center; animation: pulse 3s infinite; } .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, strongWave 8s ease-in-out 8s forwards, calmWave 8s ease-in-out 16s forwards 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%); } } @keyframes strongWave { 0% { 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%); } 25% { clip-path: polygon(0% 60%, 10% 65%, 20% 60%, 30% 65%, 40% 60%, 50% 65%, 60% 60%, 70% 65%, 80% 60%, 90% 65%, 100% 60%, 100% 100%, 0% 100%); } 50% { clip-path: polygon(0% 50%, 10% 55%, 20% 50%, 30% 55%, 40% 50%, 50% 55%, 60% 50%, 70% 55%, 80% 50%, 90% 55%, 100% 50%, 100% 100%, 0% 100%); } 75% { clip-path: polygon(0% 60%, 10% 65%, 20% 60%, 30% 65%, 40% 60%, 50% 65%, 60% 60%, 70% 65%, 80% 60%, 90% 65%, 100% 60%, 100% 100%, 0% 100%); } 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%); } } .animated-button:hover { background-color: #0fbcf9; transform: scale(1.05); box-shadow: 0 0 20px rgba(15, 188, 249, 0.5); } .ship { position: absolute; bottom: 25%; left: -20%; width: 30px; height: 30px; z-index: 2; animation: shipMove 16s linear infinite; } .boat { position: absolute; bottom: 0; left: 5px; width: 20px; height: 10px; background: sienna; border-radius: 0 0 5px 5px; } .sail { position: absolute; bottom: 10px; left: 7px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid white; } .man { position: absolute; bottom: 10px; left: 12px; width: 5px; height: 10px; background: black; } .paddle { position: absolute; bottom: 5px; left: 15px; width: 15px; height: 2px; background: brown; transform-origin: left center; animation: paddleMove 1s linear infinite; } @keyframes paddleMove { 0% { transform: rotate(0deg); } 50% { transform: rotate(45deg); } 100% { transform: rotate(0deg); } } @keyframes shipMove { 0% { left: -20%; } 100% { left: 100%; } } </style>این کد دکمه را بهگونهای تنظیم میکند که در وسط صفحه نمایش داده شود.
- User
مثل پس زمینه سایت عوض نکنه خود دکمه باشه فقط
- Assistant
بسیار خوب، اگر فقط میخواهید که دکمه در وسط صفحه قرار بگیرد بدون اینکه تنظیمات پسزمینه تغییر کند، میتوانید کد زیر را استفاده کنید:
<div class="center-container"> <div class="animated-button"> <a href="https://apperio.ir/mobile/0V9S-0FG0-7Q3H-GKD4#/nav/page-builder202"> <span>چت با هوش مصنوعی</span> </a> <div class="ship"> <div class="boat"></div> <div class="sail"></div> <div class="man"></div> <div class="paddle"></div> </div> </div> </div> <style> .center-container { display: flex; align-items: center; justify-content: center; height: 100vh; width: 100%; } .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; display: inline-block; text-align: center; animation: pulse 3s infinite; } .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, strongWave 8s ease-in-out 8s forwards, calmWave 8s ease-in-out 16s forwards 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%); } } @keyframes strongWave { 0% { 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%); } 25% { clip-path: polygon(0% 60%, 10% 65%, 20% 60%, 30% 65%, 40% 60%, 50% 65%, 60% 60%, 70% 65%, 80% 60%, 90% 65%, 100% 60%, 100% 100%, 0% 100%); } 50% { clip-path: polygon(0% 50%, 10% 55%, 20% 50%, 30% 55%, 40% 50%, 50% 55%, 60% 50%, 70% 55%, 80% 50%, 90% 55%, 100% 50%, 100% 100%, 0% 100%); } 75% { clip-path: polygon(0% 60%, 10% 65%, 20% 60%, 30% 65%, 40% 60%, 50% 65%, 60% 60%, 70% 65%, 80% 60%, 90% 65%, 100% 60%, 100% 100%, 0% 100%); } 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%); } } .animated-button:hover { background-color: #0fbcf9; transform: scale(1.05); box-shadow: 0 0 20px rgba(15, 188, 249, 0.5); } .ship { position: absolute; bottom: 25%; left: -20%; width: 30px; height: 30px; z-index: 2; animation: shipMove 16s linear infinite; } .boat { position: absolute; bottom: 0; left: 5px; width: 20px; height: 10px; background: sienna; border-radius: 0 0 5px 5px; } .sail { position: absolute; bottom: 10px; left: 7px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid white; } .man { position: absolute; bottom: 10px; left: 12px; width: 5px; height: 10px; background: black; } .paddle { position: absolute; bottom: 5px; left: 15px; width: 15px; height: 2px; background: brown; transform-origin: left center; animation: paddleMove 1s linear infinite; } @keyframes paddleMove { 0% { transform: rotate(0deg); } 50% { transform: rotate(45deg); } 100% { transform: rotate(0deg); } } @keyframes shipMove { 0% { left: -20%; } 100% { left: 100%; } } </style>در این کد، استایلهای
center-containerتنظیمکننده موقعیت دکمه در وسط صفحه هستند. این روش بدون تغییر در پسزمینه کلی صفحه یا دیگر عناصر است.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- gpt-4o-mini-2024-07-18Compare side by side →
- gpt-4o-2024-11-20Compare side by side →
- gpt-4o-mini-2024-07-18Compare side by side →
- gpt-4o-2024-11-20Compare side by side →
- gpt-4o-2024-08-06Compare side by side →
- gpt-4o-2024-08-06Compare side by side →
- o1-mini-2024-09-12Compare side by side →
- gpt-4o-2024-08-06Compare side by side →
- gpt-4o-mini-2024-07-18Compare side by side →
- gpt-4o-mini-2024-07-18Compare side by side →
- gpt-4o-2024-08-06Compare side by side →
- gpt-4o-2024-08-06Compare side by side →