
內容簡介
Headroom.js 是一個輕量、高效能的 JS 小工具(不需要依賴其他外掛),它可以讓您對使用者的捲軸滾動做出反應。當向下滾動時,標頭會隨之滑出視野,當向上滾動時,標頭會重新出現。這可以改善擁有較長文章的網站的易用性。Headroom.js 小工具的程式碼由 Nick Williams(http://wicky.nillia.ms/headroom.js)編寫。
為什麼要使用它?
固定標頭是讓主要導覽接近使用者的流行方法,可以減少使用者快速瀏覽網站所需的工作量,但它們並非沒有問題...
大屏幕通常是橫向的,意味著垂直空間比水平空間少。因此,固定標頭可能佔用相當大的內容區域。小屏幕通常是豎向的。儘管這會產生更多的垂直空間,但由於屏幕的整體高度,一個有意義大小的標頭仍然可能非常厚重。
Headroom.js 可以讓您在適當的時候顯示元素,並在其餘時間專注於內容。
WordPress 外掛由線上保護區草仔發展而來
線上保護區草仔在本質上是一家荷蘭的線上營銷代理公司,具有許多開發知識。我們在許多 WordPress 網站上使用這些知識。請訪問http://onlineboswachters.nl,查看我們管理和開發的 WordPress 網站的作品集。
外掛標籤
開發者團隊
原文外掛簡介
Headroom.js is a lightweight, high-performance JS widget (with no dependencies!) that allows you to react to the user’s scroll. The header slides out of view when scrolling down and slides back in when scrolling up. This improves usability of websites that have longer articles. Headroom.js widget code is coded by Nick Williams (http://wicky.nillia.ms/headroom.js).
Why use it?
Fixed headers are a popular approach for keeping the primary navigation in close proximity to the user. This can reduce the effort required for a user to quickly navigate a site, but they are not without problems…
Large screens are usually landscape-oriented, meaning less vertical than horizontal space. A fixed header can therefore occupy a significant portion of the content area. Small screens are typically used in a portrait orientation. Whilst this results in more vertical space, because of the overall height of the screen a meaningfully-sized header can still be quite imposing.
Headroom.js allows you to bring elements into view when appropriate, and give focus to your content the rest of the time.
WordPress Plugin is developed by Online Boswachters
Online Boswachters is a Dutch online marketing agency at its core with a lot of development knowledge. We use that knowledge on a lot of WordPress sites as well. Visit http://onlineboswachters.nl to see our portfolio of WordPress sites we manage and developed as well.
