• Stars
    star
    157
  • Rank 238,399 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Puts floats in single line.

Attention! This repository is not currently maintained, and is kept for historical purpose only. Fork your copy away!

Thanks everyone for support <3

🔒🔒🔒

Scrollyeah 👍

Puts floats in single line.

Getting Started

To make Scrollyeah work on a page:

  1. Link to the newest jQuery, scrollyeah.css & scrollyeah.js.
  2. Add elements to <div class="scrollyeah"></div>.

Basic example:

<script src="jquery.js"></script>
<link  href="scrollyeah.css" rel="stylesheet" />
<script src="scrollyeah.js"></script>

<div class="scrollyeah">
  <div class="float">1</div>
  <div class="with-any-class">2</div>
  <div class="yeah">3</div>
  <!-- ... -->
</div>

Options

Options are passed through the data-optionName attributes:

<div class="scrollyeah" data-shadows="false" data-disableIfFit="true">
  <!-- ... -->
</div>

shadows

Enables shadows.

maxWidth

Inner content max-width in pixels. Increase if your content wider than 999999px.

disableIfFit

Disables dragging if no overflow.

centerIfFit

Centers content if width enough.

triggerScrollyeah

Triggers scrollyeah event on element.

Default options:

{
  maxWidth: 999999,
  shadows: true,
  disableIfFit: true,
  centerIfFit: false,
  triggerScrollyeah: false
}

Examples

  1. Default
  2. Disable if fit
  3. Center if fit
  4. Parallax

Live example

jQuery (1.9+) is required.

License

Copyright © 2012 Artem Polikarpov Licensed under the MIT License.

More Repositories

1

fotorama

A simple, stunning, powerful jQuery gallery.
HTML
1,582
star
2

garmoshka

Move the bellows
CSS
360
star
3

Flags

Flag icons in sprite
JavaScript
71
star
4

fuckyeah

$('#sexy').slideDown('slow').fuckYeah();
JavaScript
61
star
5

upyachka.js

Reserve the place where responsive images are going
JavaScript
59
star
6

shower-meteor

Create, store and remotely control your Shower presentation
JavaScript
29
star
7

stickyeah

Makes blocks stick to the top of the screen while scrolling down the page
JavaScript
26
star
8

fresh

Лаконичная адаптивная тема оформления для блогов на Эгее за *** рублей
CSS
24
star
9

krutilka

Крутилка — это джейквери-плагин, рисующий прелоадер любого цвета и размера, с любым количеством лепестков.
23
star
10

fotorama-bower

A simple, stunning, powerful jQuery gallery.
HTML
16
star
11

jquery.formyeah.js

Persist form’s data locally
JavaScript
9
star
12

audiofade

Набор плагинов для плавного включения и выключения аудио
JavaScript
7
star
13

responsivr.js

A small piece of JavaScript that makes sites more responsive even if they are completely fixed
JavaScript
5
star
14

grunt-gh-release

Create relases on GitHub from Grunt task.
JavaScript
4
star
15

grunt-example

Простой пример конфигурации Гранта для склейки стилей и скриптов
JavaScript
4
star
16

fotorama.io

HTML
4
star
17

Kalimba.js

HTML
2
star
18

safe-update

Make collection.update safer
JavaScript
2
star
19

sho.io

What? That!
HTML
1
star
20

macbook

Объявление о продаже Макбука
1
star
21

grunt-tweet

Tweet from Grunt task.
JavaScript
1
star