UNPKG

aitetris

Version:

致敬程序员阿列克谢·帕基特诺夫带给全世界人民的欢乐摸鱼时光,今天我们与AI一起重制了这款经典摸鱼小游戏,公益、免费、开源、分享给大家~ In tribute to programmer Alexey Pajitnov, who brought joy and countless delightful slacking-off moments to people around the world, we've teamed up with AI to remake the classic time-kill

170 lines (155 loc) 4.37 kB
/** * 游戏庆祝通知样式 */ /* 庆祝通知容器 - 预设版本 */ .celebration_7ree { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; text-align: center; pointer-events: none; width: 100%; margin: 0 auto; opacity: 0; visibility: hidden; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease; transform-style: preserve-3d; perspective: 500px; /* 添加固定高度,避免在动画时移动其他元素 */ height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; padding: 20px; font-weight: bold; } /* 通知内容区 */ .celebration_content_7ree { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 20px; background-color: transparent; border-radius: 10px; width: 100%; } /* 显示通知的状态 */ .celebration_7ree.show_7ree { transform: translateY(200px); opacity: 1; visibility: visible; } /* 大拇指图标 */ .thumb_icon_7ree { font-size: 48px; margin-bottom: 10px; transition: transform 0.3s ease-out; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); } /* 当庆祝卡片显示时,应用图标特效 */ .celebration_7ree.show_7ree .thumb_icon_7ree { animation: pulse_thumb_7ree 0.4s infinite alternate ease-in-out; text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 150, 0.9), 0 0 45px rgba(255, 200, 0, 0.7), 0 0 70px rgba(255, 180, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.5); } /* 定义脉冲动画 - 加大效果 */ @keyframes pulse_thumb_7ree { from { transform: scale(0.9) rotate(-12deg); } to { transform: scale(1.4) rotate(12deg); } } /* 通知文字 */ .celebration_text_7ree { font-size: 28px; font-weight: 900; margin: 5px 0; padding: 5px 15px; background: linear-gradient(90deg, #00FFFF, #FF00FF, #FFFF00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% auto; animation: textGradient 2s linear infinite; } /* 文字渐变动画 - 从左向右 */ @keyframes textGradient { 0% { background-position: 0% center; } 100% { background-position: -200% center; } } /* 特殊动画样式 - 消除多行 */ .celebration_7ree.multi_line_7ree .celebration_text_7ree { font-size: 32px; } /* 特殊动画样式 - 升级 */ .celebration_7ree.level_up_7ree .celebration_text_7ree { font-size: 36px; background: linear-gradient(90deg, #FFD700, #FFA500, #FF4500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% auto; animation: textGradient 1.5s linear infinite; } /* 新版庆祝动画样式 - 淡入淡出 */ .celebration_7ree.fade-in-out_7ree { opacity: 1; visibility: visible; transform: translateY(30%); animation: fade_in_out_7ree 4s ease-in-out forwards; font-size: 32px; text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); color: #FFFF00; } /* 特殊升级文本样式 */ .celebration_7ree.fade-in-out_7ree span:first-child { font-size: 36px; color: #FFD700; display: block; margin-bottom: 5px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 165, 0, 0.6), 0 0 30px rgba(255, 69, 0, 0.4); } .celebration_7ree.fade-in-out_7ree span:last-child { font-size: 28px; color: #00FFFF; display: block; text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 200, 255, 0.6), 0 0 30px rgba(0, 150, 255, 0.4); } /* 淡入淡出动画定义 */ @keyframes fade_in_out_7ree { 0% { opacity: 0; transform: translateY(40%) scale(0.8); } 10% { opacity: 1; transform: translateY(30%) scale(1.1); } 20% { transform: translateY(30%) scale(1); } 80% { opacity: 1; transform: translateY(30%); } 100% { opacity: 0; transform: translateY(30%); } }