set a general offset variable#1454
Conversation
|
Thanks! |
|
Hi Álvaro, not yet unfortunately, we have a NDA with the client. But the site will be I send you an image explaining rawly the structure, and I give you the code [image: Inline image 1] var offsetHeight = $('#header').height(); $('#fullpage').fullpage({ And BTW thank you very much for your great plugin :) Cheers, On Wed, Aug 19, 2015 at 3:08 PM, Álvaro notifications@github.com wrote:
Liip AG // Rue de la Banque 1 // CH-1700 Fribourg |
|
This feature would be great! I'm working on a project that uses the ScrollMagic plugin "http://scrollmagic.io/" which basically uses offsets to trigger its events. I'm doing some extra work to combine this two libraries. |
|
@alexandretperez that has nothing to do with this topic. You should be using |
|
@alvarotrigo I'm sorry, I wasn't clear enough. I needed stop scrolling the sections at 60px from the top, but changing the css to do that also affects the bottom, overflowing in 60px because the wrapper has 100% of the viewport. So I change the code adding the "offset" option with value 0 by default. Then I change this: To this: and in the function "init()" I added: This solved my needs. Cheers, |
|
Please add this. Right now the library assumes it's on the top level element, and requires ugly workarounds to work. |
|
@edenworky maybe for the next release. |
|
I also need an offset to land sections below my header. |
|
I too am wishing for this feature. |
|
I have another open PR for this concept. |
|
what's up with this? I've purchased this plugin but doesn't work with that very obvious reason we have a navbar on the top of the page, so every scroll gets bigger (100% window height + the navbar height 66px), so every section is 66px longer that the bottom of the screen. Very frustrating. |
|
@csimpi have you considered using the |
|
@alvarotrigo in my case I use Angular 8 and I have a main-menu component which has a Now I've refactored my code and added |
Thanks for the feedback! ;) |
This offset variable is useful when fullPage.js is wrapped into a bigger website, with an existing header is shifting all the scroll positions.