タグ

ブックマーク / css-tricks.com (1)

  • Persistent Headers | CSS-Tricks

    DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in free credit! This is some code to get the header of some content area to stay visible at the top of the screen as you scroll through that content. Then go away when you’ve scrolled past that relevant section. Header… persisting. Couple things to know before we get started: There are many like it, but thi

    Persistent Headers | CSS-Tricks
    tact_tomi
    tact_tomi 2011/08/17
    スクロールに対応して指定要素が特定距離を追従する。「スクロール位置」と「指定要素の位置&幅」を比較してcssのvisibilityを操作する条件分岐。スクロール系の処理を作成する時の参考にメモ
  • 1