3 Replies Latest reply on Dec 7, 2014 6:44 PM by resdesign

    Hi, I am trying to do a parallax website using the X-Axis and horizontal scrolling this is my code please help

    bluemoon99

      Creationcomplete

      yepnope({

          load: "http://cdn.edgecommons.org/an/1.0.2/js/min/EdgeCommons.js",

        callback: function() {

        EC.centerStage(sym);

        EC.Parallax.setup(sym,"horizontal");

        }

      });

      this.onMove=function(posX, posY) {

      timelinecontrol=Number(posX)*12000;

      console.log(timelinecontrol);

      sym.stop(timelinecontrol);

      }

       

      stageclick

      $('html,body').animate({"scrollLeft":"0px"}, 12000);

       

      Stagemouseover

      this.onMove(e.pageX, e.pageY);