add animation to 'rotating' date style

This commit is contained in:
darksignal7
2025-10-06 23:05:03 +03:00
parent 48f054c809
commit 4b6b27a8fd
@@ -20,7 +20,7 @@ Item {
height: parent.height
rotation: {
if (!Config.options.time.secondPrecision) return 0;
return secondHandLoader.item.rotation + 45 // +45 degrees to align with minute hand
return (secondHandLoader.item.rotation + 45) + (opacity * 360); // +45 degrees to align text's center // (opacity * 360) for open/close anim
}
opacity: root.style === "rotating" ? 1.0 : 0