Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 753 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 753 Bytes

curse.js

Page-based scrolling experiment with vertical-track cursor. See demo!

Dependencies

Usage

$('.your-text-container').curse(options);

Options (and defaults):

  • scrollMarginRatio: 1/7
  • cursorSize: 10
  • color: '#AAAAAA'
  • animateSpeed: 300
  • markPageNumbers: false
  • initialScrollPosition: undefined (i.e. current scrollTop)

Todos

  • Draggable cursor!
  • Support right-side cursor as (default?) option
  • Snap cursor to lines?
  • Export plugin to build directory
  • Un-curse