rellax-纯js轻量级滚动视觉差特效插件 Lightweight, vanilla javascript parallax library

RELLAXJS

Light (871b gz)

Vanilla Javascript

Parallax Library

San Francisco
California

Incorporated—
1850

37°47′N 122°25′W
68°

JAVASCRIPT (ACCEPTS ANY CLASS NAME)

var rellax = new Rellax('.rellax');

BASIC MARKUP (DEFAULT SPEED: -2)

<div class="rellax">
  I’m slow and smooth
</div>

OPTIONAL SPEED (-10 to +10)

<div class="rellax" data-rellax-speed="6">
  I’m slow and smooth
</div>

SERIOUSLY, WHY?!

Come on, how boring is the internet without excessive javascript? We made this library since too many github repos are abandoned (RIP skrollr) or feature creepy. You got some beef or caught us slippin on unit tests, send rants and 10mb gifs to moe@dixonandmoe.com

BUT ACTUALLY

We've benefitted so much from open source projects and developers that we're actively trying to give back. As designers, making pull requests to large projects like Rails or React is a little intimidating, so we're starting by releasing our own quirky js code.