From 2c6319e62a484f1e837151def9d46e3b5839c01a Mon Sep 17 00:00:00 2001 From: RiseForever Date: Thu, 27 Aug 2026 15:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=81=AF=E7=AE=B1=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为图片灯箱加入了从哪来回哪去的动画 --- src/components/ImageLightbox.astro | 10 ++++++++-- src/content/posts/2026/08/august.md | 11 +++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 src/content/posts/2026/08/august.md diff --git a/src/components/ImageLightbox.astro b/src/components/ImageLightbox.astro index 4ff3457..2764f39 100644 --- a/src/components/ImageLightbox.astro +++ b/src/components/ImageLightbox.astro @@ -24,13 +24,19 @@ const items = images.map((item) => ({ ...getSize(item), src: item.dataset.originalSrc || item.currentSrc || item.src, - alt: item.alt + msrc: item.currentSrc || item.src, + alt: item.alt, + element: item })); lightboxPromise ??= import('photoswipe/lightbox').then(({ default: PhotoSwipeLightbox }) => { const lightbox = new PhotoSwipeLightbox({ pswpModule: () => import('photoswipe'), - bgClickAction: 'close' + bgClickAction: 'close', + showHideAnimationType: 'zoom', + showAnimationDuration: 360, + hideAnimationDuration: 300, + easing: 'cubic-bezier(0.22, 1, 0.36, 1)' }); lightbox.init(); return lightbox; diff --git a/src/content/posts/2026/08/august.md b/src/content/posts/2026/08/august.md new file mode 100644 index 0000000..5bed51a --- /dev/null +++ b/src/content/posts/2026/08/august.md @@ -0,0 +1,11 @@ +--- +title: "八月记" +pubDate: "2026-08-27T06:42:43.447Z" +categories: ['生活'] +tags: ['总结'] +draft: false +--- + +## 序 + +Cue 一下去年年初写的[《复盘我这庸碌的寒假》](https://www.luming.cool/posts/2025/02/winter-holiday-summary/),因为我的暑假比它还庸碌。 \ No newline at end of file