javascript - Transforming navigation bar to a fixed header over horizontal parallax website -


the title may seem bit peculiar try explain best possible confusion minimized.

currently using fullpage.js plugin website create horizontal 'slide' effect. check website out see mean. http://carrotcrunchpvp.comule.com/

as can see navigation bar slap bang in middle of page when enter rotated , such. when slide right using arrow, want navigation bar 'push' out ethos link goes top left, privacy policy link goes adjacent (horizontally), path healing. logo shift directly upward form middle of navigation bar. nz catholic church shimmy right , adjacent logo, contact go further right , page reach far right of navigation bar located @ top of page. creating header navigation bar

look @ illustration better idea:

enter image description here

the black lines path of transformations. it's not easy seems, css3 transformations too...

now problems, i'm capable css, jquery , javascript knowledge lacking. i'm unsure how approach this. because want transformation occur when clicking homepage next page or 1 of other pages more content. turning fixed header. when go homepage need animate backwards original navigation bar...

how go this? task i.t teacher has set me on holidays , i'm struggling figure how logically this.

if i've missed or you're still confused on want achieve, feel free comment , try clarify. mods, it's subjective topic, i'll agree - it's topic spreads creativity , shouldn't frowned upon , looked @ closure - imo...

you should using callbacks fullpage.js provides such afterslideload or afterslideleave.

if not want deal javascript @ all, notice how fullpage.js updating class fp-viewing-xxxx in body element.

you can use fire animations depending on active class.

  • when load site empty.
  • going second slide add class fp-viewing-horizontal-1 in case
  • going home again load fp-viewing-horizontal.

in css like:

body .menu, body.fp-viewing-horizontal .menu{   //your home menu styles/animations }  body.fp-viewing-horizontal-1 .menu, body.fp-viewing-horizontal-2 .menu, body.fp-viewing-horizontal-3 .menu, body.fp-viewing-horizontal-4 .menu, body.fp-viewing-horizontal-5 .menu, body.fp-viewing-horizontal-6 .menu, body.fp-viewing-horizontal-7 .menu{   //your fixed menu styles/animations } 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -