nav新增动画,修复潜在的性能和bug,优化动画流畅度
This commit is contained in:
@@ -133,18 +133,18 @@ export default function Navbar() {
|
||||
{/* Launch App Button & Language Selector */}
|
||||
<div className="flex-1 flex justify-end items-center gap-4">
|
||||
<div
|
||||
className="bg-[#111827] rounded-lg px-5 py-2.5 h-10 flex items-center justify-center overflow-hidden cursor-pointer hover:opacity-90 select-none"
|
||||
style={{
|
||||
transform: animate ? 'translateY(0)' : 'translateY(-3rem)',
|
||||
opacity: animate ? 1 : 0,
|
||||
transition: 'all 1s ease-out',
|
||||
transitionDelay: '200ms'
|
||||
transition: 'transform 1s ease-out 200ms, opacity 1s ease-out 200ms'
|
||||
}}
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<span className="text-[#fcfcfd] font-bold text-sm leading-[150%] font-inter">
|
||||
{t('nav.launchApp')}
|
||||
</span>
|
||||
<div className="bg-[#111827] rounded-lg px-5 py-2.5 h-10 flex items-center justify-center overflow-hidden cursor-pointer hover:scale-105 select-none transition-transform duration-300">
|
||||
<span className="text-[#fcfcfd] font-bold text-sm leading-[150%] font-inter">
|
||||
{t('nav.launchApp')}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Language Selector */}
|
||||
|
||||
Reference in New Issue
Block a user