From bf4f9668e41f7401ab1c415851a76b9ec9f68a5d Mon Sep 17 00:00:00 2001 From: Joy Cheng Date: Thu, 19 Aug 2021 13:00:24 +0800 Subject: [PATCH] [edit] index aos animation effect --- app/assets/js/all.js | 4 ++- app/index.html | 80 +++++++++++++++++++++++++++++++++----------- app/layout.ejs | 4 +-- 3 files changed, 64 insertions(+), 24 deletions(-) diff --git a/app/assets/js/all.js b/app/assets/js/all.js index 45799e8..f854124 100644 --- a/app/assets/js/all.js +++ b/app/assets/js/all.js @@ -1,5 +1,7 @@ //Aos -AOS.init(); +AOS.init({ + once: true, +}); //swipers //https://swiperjs.com/demos diff --git a/app/index.html b/app/index.html index 3e92a6e..837d3cd 100644 --- a/app/index.html +++ b/app/index.html @@ -25,7 +25,10 @@ pb-md-0 offset-md-1 " - > + data-aos="fade-in" + data-aos-duration="1200" + data-aos-delay="100" + >

台北當代藝術展

01 JUN - 31 OCT

@@ -133,10 +136,14 @@

台北當代藝術展

-

熱門特展

+

熱門特展