التمرير اللانهائي Infinite Scroll
يُحمَّل المحتوى من تلقاء نفسه كلما وصلت إلى الأسفل، دون صفحات ولا أزرار.
IntersectionObserver sentinelمتى تستخدمه
للمحتوى الاجتماعي والصور التي يتصفحها الناس بلا هدف.
خطأ شائع
لنتائج بحث تريد العودة إليها، الترقيم أفضل.
إمكانية الوصول
Announce new items and keep the footer reachable.
اسمه في الكود
| HTML/CSS | IntersectionObserver sentinel |
|---|---|
| React | react-infinite-scroll-component |
| Jetpack Compose | LazyColumn + Paging 3 |
| SwiftUI | List + .onAppear (last item) |
برومبت جاهز لوكيل البرمجة
Add a Infinite Scroll to this screen.
What it is: More content loads automatically as you reach the bottom, with no pages or buttons.
Implement with: IntersectionObserver sentinel (HTML/CSS).
Accessibility: Announce new items and keep the footer reachable.
When to use it: For social feeds and browsing without a goal.
Avoid: For search results people return to, pagination is better.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.