Files
yakpanel-core/YakPanel/static/vite/js/theme-animation-legacy-DcC4xxA6.js

2 lines
604 B
JavaScript
Raw Permalink Normal View History

2026-04-07 02:04:22 +05:30
System.register([],(function(t,n){"use strict";return{execute:function(){t("e",(async(t,n)=>{if(!document.startViewTransition)return void(await n());const i=t?.clientX??window.innerWidth/2,e=t?.clientY??window.innerHeight/2,a=Math.hypot(Math.max(i,window.innerWidth-i),Math.max(e,window.innerHeight-e)),o=document.startViewTransition((async()=>{await n()}));o.ready.then((()=>{const t=[`circle(0px at ${i}px ${e}px)`,`circle(${a}px at ${i}px ${e}px)`];document.documentElement.animate({clipPath:t},{duration:400,easing:"ease-in",pseudoElement:"::view-transition-new(root)"})})),await o.finished}))}}}));