Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fullPage.js + parallax #59

Closed
toastedpixel opened this issue Oct 24, 2013 · 9 comments
Closed

fullPage.js + parallax #59

toastedpixel opened this issue Oct 24, 2013 · 9 comments

Comments

@toastedpixel
Copy link

Hi! Does anyone tried to make parallax effects with the fullpage.js? Is that possible combine with other code?

@acturbo
Copy link

acturbo commented Oct 26, 2013

+1 ... it would be good to see a sample

@alvarotrigo
Copy link
Owner

alvarotrigo commented Oct 27, 2013

Update March 2017

There's now a parallax extension to create parallax effects!

Original answer

It shouldn't be a problem. You can add the needed jquery in the ´afterRender´ event.

What is the problem you are facing?

@alvarotrigo
Copy link
Owner

alvarotrigo commented Dec 18, 2013

Update March 2017

There's now a parallax extension to create parallax effects!

Original answer

Here you have an example using fullpage.js with paralax:

http://www.saltaboombox.com.ar/

@Kwaadpepper
Copy link

I'm actually trying to put a parallax in slides,
i found this https://github.com/darsain/sly/wiki/Parallax,
since you can input the scroll source, maybe there is a way to make it work, i don’t really know right now.

Hope someone find a way through this :)

@tomByrer
Copy link
Contributor

tomByrer commented Aug 3, 2014

http://www.saltaboombox.com.ar/

I think this site's paralax has to do more with GASP & their own hand-written code than fullPage.js.

Seems some people expect fullPage to be a feature-rich 'turn-key' solution for all their paralax needs. But fullPage is just a simple slideshow maker, with extras that you can expand upon with the user's hard work.

@Kwaadpepper
Copy link

I've just found something interesting,
since fullpage.js uses slimscroll (there is no good doc about).
I saw on slimscroll source it binds the event slimscrolling, there is also slimscroll (for bottom and top)

So you can use for your parallax code :

    $('#fullpage').fullpage({
        ...
        scrollOverflow: true,
        ...
    });
    <div id="Sbiographie" class="section">
        <h3>my section</h3>
    </div>
    // On scroll event
    $('#Sbiographie').bind('slimscrolling', function(e, pos) {
        console.log(e,"Scrollbar at "+pos+"px");
    });
    // Top and bottom event
    $('#Sbiographie').bind('slimscroll', function(e, pos) {
        console.log("Reached " + pos");
    });

see http://rocha.la/jQuery-slimScroll.

Hope this helps somebody (it would be nice to add to the fullpage.js doc since it uses slimscroll plugin).

EDIT: It would also be nice to have access easily to slimscroll configuration options (like wheelStep for example) :)

@alvarotrigo
Copy link
Owner

Now from version 2.4.4 you can combine fullPage.js with any parallax plugin if you use the option scrollBar:true as you can see in this demo.

scrollBar: (default false). Determines whether to use scrol bar for the site or not. In case of using scroll bar, the autoScrolling functionallity will still working as expected. The user will also be free to scroll the site with the scroll bar and fullPage.js will fit the section in the screen when scrolling finishes.

This way the plugin will really perform the scroll of the site as all these kind of parallax techniques expect.

@ProfCMA
Copy link

ProfCMA commented Apr 20, 2015

Is this to say that using css based parallax is not possible?

@alvarotrigo
Copy link
Owner

There's now a parallax extension to create parallax effects!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants