diff --git a/src/components/AboutUs.vue b/src/components/AboutUs.vue
index 0e7f88d..0f136c5 100644
--- a/src/components/AboutUs.vue
+++ b/src/components/AboutUs.vue
@@ -5,9 +5,9 @@
line1="专业水下视学设备团队,研发出品,多年的使用经验打磨的好产品,支持定制,想您所想,另外公司有硬件研发团队"
line2="软件研发团队、结构研发团队、外观研发团队也能帮您研发设计其他产品。"
/>
-
@@ -17,10 +17,26 @@
import HeadLine from '@/components/HeadLine'
import FourCard from '@/components/FourCard'
import { useRouter } from 'vue-router'
+import { animateCSS } from '@/constant'
+import { ref, onMounted } from 'vue'
const router = useRouter()
const toAboutPage = () => {
router.push('/about')
}
+const elRight = ref(null)
+const elLeft = ref(null)
+const el = ref(null)
+onMounted(() => {
+ const observer = new IntersectionObserver(entries => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ animateCSS(elRight.value, 'backInRight')
+ animateCSS(elLeft.value, 'backInLeft')
+ }
+ })
+ })
+ observer.observe(el.value)
+})