GitXplorerGitXplorer
t

scroller

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
389e94284a813b0a5dc63cbf1da6f5b4b7976574

Animate scrolling, trim some silliness

ttivac committed 10 years ago
Unverified
714afe8fc605576e1bef39ab7b82dd7274ba8603

Comments shouldn't lie

ttivac committed 10 years ago
Unverified
a3bc9015cfdb9509c4dae3780d4437938e618205

Fix holding on scroll track

ttivac committed 10 years ago
Unverified
0a2b3af0582b4a7db9961b5d6a9c00596315f4c3

Generic holding/releasing support

ttivac committed 10 years ago
Unverified
5e05909a3e1903aa56c555856e85d5b3b27e8221

Stop cloning scroller, just move it around

ttivac committed 10 years ago
Unverified
efe03e81881849d17a63e463911b86f4a2c42d8e

Slight method rename

ttivac committed 10 years ago

README

The README file for this repository.

scroller

Rationale

I need custom JS/HTML scrollbars for within the GW2 client because webkit doesn't support a lot of features using pseudo element styling. Useful things, like ::before/::after and transitions and filters.

Most existing solutions are jQuery based or very complicated. I don't want that.

This solution is using only the purest vanilla JS (plus CSS & some markup) with special attention paid to performance. By using requestAnimationFrame() to throttle scroll events (via https://github.com/tivac/raf-throttler) and translateY() for scrollbar handle position this should be blazing fast all the time.

No thought is given to supporting non-webkit browsers, though I'm not trying to exclude them either. I'm targeting Chromium 28 because that's what is embedded in GW2 currently.

Example

http://jsbin.com/likez/

Development

I'm building this inside jsBin as an experiment. I think I like it?

http://jsbin.com/yuyag/2/edit