Tabella.js is a pure javascript, touch enabled, responsive table plugin. Table header is fixed only when at least some part of the table is in the viewport.
Website Demo