佈局與網格
- Masonry:經典瀑布流佈局,支援動畫、無限滾動。
- Isotope:Masonry 超集,內建篩選、排序、Layout Modes。
圖片響應式
- jQuery Picture:根據螢幕尺寸/解析度切換
<picture> 來源。
- Adaptive Images:伺服器端配合 .htaccess 自動生成多尺寸圖片。
- Blueberry:輕量級響應式圖片滑塊。
輪播/幻燈片
- ResponsiveSlides.js:極簡、無依賴、CSS 動畫、鍵盤可存取。
- Elastislide:彈性輪播,項目寬度自適應容器。
- Supersized:全螢幕背景幻燈,支援鍵盤導航、縮圖導航。
- PhotoSwipe:行動優先畫廊,手勢縮放、分享、全螢幕。
- scrolldeck:捲動驅動幻燈,適合單頁式故事敘事。
- Really Simple Slideshow:極輕量、自動播放、淡入淡出。
導航/選單
- Transform Menu to Dropdown:小螢幕自動將水平選單轉為下拉選單。
- The Heads-Up Grid:開發時疊加網格基線,輔助響應式對齊。
媒體處理
- FitVids.js:讓 iframe/embed 影片(YouTube, Vimeo)流體寬度自適應。
- Hoverizr:圖片懸停效果(灰階、模糊、縮放)響應式處理。
文字/排版
- FitText:標題文字大小隨容器寬度自動縮放(
font-size: 1/10 * width)。
- Doubletake:雙版面切換展示(桌面/行動不同佈局)。
- Automatic Image Montage:自動拼貼圖片填滿容器,類 Pinterest 排版。
- Responsive Image Gallery with Thumbnail Carousel:縮圖導航大圖切換畫廊。
選型建議
| 需求 | 首選 | 備選 |
| 瀑布流/不規則網格 | Masonry | Isotope |
| 響應式圖片 srcset | Picturefill (polyfill) | jQuery Picture |
| 極簡輪播 | ResponsiveSlides.js | Blueberry |
| 全螢幕背景 | Supersized | Vegas.js |
| 行動畫廊 | PhotoSwipe | Swipebox |
| 影片自適應 | FitVids.js | CSS aspect-ratio |
| 標題自適應 | FitText | CSS clamp() |
趨勢提醒
現代專案建議優先使用 原生 CSS(Grid、Flexbox、clamp()、aspect-ratio、srcset/<picture>)與 Vanilla JS 互動庫,減少 jQuery 依賴,提升效能與維護性。