Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

smashed-potatoes/parallaxed.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

parallaxed.js

A basic parallax plugin for jQuery

Currently only supports vertical parallax

Installation

  • Copy parallaxed.js to your scripts directory
  • Add it after you include jQuery

Usage

Basic Usage

<div class="parallax_item">
 I will be parallaxed!
</div>
$('.parallax_item').parallaxed();

Data items

The following items can be added to modify how an element is parallaxed. #####Note: Prefix with data-parallaxed-* i.e.:

<div class="parallax_item"
 data-parallaxed-speed='1.5'
 data-parallaxed-start='offset'
 data-parallaxed-startoffset='100'>
...
Data Item Description Default Accepted Values
start When parallax scrolling should start visible visible, offset, always
speed The speed at which the item is parallaxed 1 Number
startoffset The offset (in px) parallax scrolling should start at - used when start value is offset 0 Integer
usetransform Whether css transform or should be used to move the element (otherwise top/left are used) true true, false

About

A basic parallax plugin for jQuery

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /