4.0.1 • Published 8 years ago

scroll-refractor v4.0.1

Weekly downloads
5
License
Public domain
Repository
github
Last release
8 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

8 years ago

3.10.4

8 years ago

4.0.0

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago