Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewlaskey/slightlylax.js

Create content sections that slide over each other as the user scrolls
https://github.com/andrewlaskey/slightlylax.js

Last synced: 19 days ago
JSON representation

Create content sections that slide over each other as the user scrolls

Awesome Lists containing this project

README

        

SlightlyLax.js
==============

Create content sections that slide over each other as the user scrolls. It's a little like parallax, but only slightly.

##Setup

Include the script

```HTML

```

Your page sctructure should look something like this:

```HTML















```

Ideally in your stylesheets make sure your ".panel" class has a set height. SlightlyLax will find panels where "data-lax" is set to true. As the user scrolls, these panels will slide up over the previous panel slightly hiding that content. The first panel doesn't need the "data-lax" attribute.