Skip to content

dechov/curse.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Page-based scrolling with vertical cursor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages