使用Claude优化动画

This commit is contained in:
CN-JS-HuiBai
2026-04-06 02:40:28 +08:00
parent 225ec71ac3
commit 96de50285f

View File

@@ -251,7 +251,7 @@
offset: 1 offset: 1
} }
], { ], {
duration: 400, duration: 600,
easing: 'cubic-bezier(0.16, 1, 0.3, 1)', easing: 'cubic-bezier(0.16, 1, 0.3, 1)',
fill: 'none' fill: 'none'
}); });
@@ -305,7 +305,7 @@
offset: 1 offset: 1
} }
], { ], {
duration: 350, duration: 500,
easing: 'cubic-bezier(0.4, 0, 0.2, 1)', easing: 'cubic-bezier(0.4, 0, 0.2, 1)',
fill: 'forwards' // Hold final frame until we remove class fill: 'forwards' // Hold final frame until we remove class
}); });
@@ -1785,7 +1785,7 @@
`).join(''); `).join('');
} }
window.editRoute = function(id, source_id, source, dest, target) { window.editRoute = function (id, source_id, source, dest, target) {
editingRouteId = id; editingRouteId = id;
dom.routeSourceSelect.value = source_id; dom.routeSourceSelect.value = source_id;
dom.routeSourceInput.value = source; dom.routeSourceInput.value = source;
@@ -1853,7 +1853,7 @@
} }
} }
window.deleteLatencyRoute = async function(id) { window.deleteLatencyRoute = async function (id) {
if (!user) { if (!user) {
showSiteMessage('请登录后再操作', 'error'); showSiteMessage('请登录后再操作', 'error');
openLoginModal(); openLoginModal();