← 返回
未分类 中文

carousel

When the user wants to design, optimize, or audit carousel/slider layouts for content display. Also use when the user mentions "carousel," "slider," "carouse...
当用户希望设计、优化或审查轮播/滑动布局以展示内容时使用。也适用于用户提到“轮播”“滑动”等关键词时。
kostja94 kostja94 来源
未分类 clawhub v1.1.0 2 版本 99815.2 Key: 无需
★ 0
Stars
📥 540
下载
💾 1
安装
2
版本
#latest

概述

Components: Carousel Layout

Guides carousel (slider) layout design for sequential content display. Carousels show one or few items at a time; users swipe or click to advance. Best when space is limited and multiple items need rotation—testimonials, quotes, logos, gallery highlights.

When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

When to Use Carousel

Use carousel whenUse grid/list when
----------------------------------------
Limited spaceFull catalog visible
One focus at a time; rotation desiredBrowse, compare many items
Testimonials, quotes, logos, featured galleryProducts, templates, blog index
Above fold; hero or section highlightFull listing; discovery

See grid for equal-hierarchy display; list for text-heavy scan; masonry for varying-height gallery.

Carousel vs Grid vs List vs Masonry

LayoutStructureBest for
-----------------------------
GridEqual rows and columns; all visibleProducts, templates, features
ListSingle column; stackedBlog index, docs, search results
MasonryColumns; varying heightsPinterest-style gallery
CarouselSlides; one/few visible; swipe/clickTestimonials, logos, featured items

Best Practices

Accessibility

  • Keyboard navigation: Arrow keys to move; Enter/Space to activate; focus visible
  • User control: Don't auto-advance too fast; allow pause; avoid auto-advance if prefers-reduced-motion is set
  • Announcements: Screen reader users need to know current slide and total (e.g., "Slide 2 of 5")
  • Touch targets: ≥44×44px for prev/next buttons on mobile

Performance

  • Lazy load: Load off-screen slides on demand; avoid loading all images upfront
  • Reserve space: Reserve space for slides to avoid layout shift (CLS)

SEO

  • Content in DOM: All carousel content must be in the initial HTML at page load. Google does not simulate clicks; content loaded via AJAX on slide change is not discoverable. Same as tab-accordion.
  • Recommendation: Server-render all slides in HTML; use CSS/JS only to show/hide. See rendering-strategies.

Use Cases

Use caseFormatPage Skill
------------------------------
TestimonialsQuote carousel; multiple testimonialstestimonials-generator
Showcase / GalleryFeatured items; rotationshowcase-page-generator
Press logos"As Seen In" logo strip or quote carouselpress-coverage-page-generator
CommunityBanner carousel below herocommunity-forum

Related Skills

  • grid: Grid for full catalog; when carousel is too restrictive
  • list: List for text-heavy scan
  • masonry: Masonry for varying-height gallery
  • card: Card structure within carousel slides
  • testimonials-generator: Testimonial carousel; testimonials as content
  • showcase-page-generator: Gallery format options (grid, masonry, carousel)
  • tab-accordion: Similar SEO requirement—content in DOM at load
  • rendering-strategies: SSR, SSG; content in initial HTML for crawlers

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-05-03 05:00 安全 安全
  • v1.0.0
    2026-03-30 15:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 330 📥 93,220
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 426 📥 116,405
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 216 📥 46,821