4.0.1 • Published 9 years ago

scroll-refractor v4.0.1

Weekly downloads
5
License
Public domain
Repository
github
Last release
9 years ago

scroll-refractor

A web component that scrolls its content perpendicularly.

Check out a demo.

Why

You want to navigate through a horizontal interface by scrolling vertically or vice versa.

How

The component expands in the direction of scroll proprtional to its content, and then uses requestAnimationFrame to translate its firstElementChild along a perpendicular axis.

Example

<x-scroll-refractor orientation=vertical factor=0.5 reverse>
  <div>
    <img src=1.jpg>
    <img src=2.jpg>
    <img src=3.jpg>
  </div>
</x-scroll-refractor>

License

Public domain

4.0.1

9 years ago

3.10.4

9 years ago

4.0.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago