scrollToComments() {
     scroller.scrollTo('commentsTop', {
         duration: 600,
         delay: 100,
         smooth: true
     });
 }
Example #2
0
 scrollTo() {
   scroller.scrollTo('scroll-to-element', {
     duration: 800,
     delay: 0,
     smooth: 'easeInOutQuart'
   })
 }
Example #3
0
 goToContainer.then(() =>  
     scroller.scrollTo('scroll-container-second-element', {
         duration: 800,
         delay: 0,
         smooth: 'easeInOutQuart',
         containerId: 'scroll-container'
     }));
Example #4
0
 handleNextpage(){
  listPostsActions.nextpage();
  scroller.scrollTo('nav', {
    duration: 1500,
    delay: 100,
    smooth: true,
  });
 }
Example #5
0
 Song.loadSong(url, (song) => {
   this.setState({song});
   this.setState({isLoadingSong: false});
   scroller.scrollTo("the-song", {
     duration: 500,
     smooth: true,
   });
 }, (err) => {
Example #6
0
	handleNextpage(){
		BookAction.nextpage();
		scroller.scrollTo('new', {
		  duration: 1500,
		  delay: 100,
		  smooth: true,
		});
	}
 componentDidUpdate(prevProps) {
     if (prevProps.formState === 'hidden') {
         scroller.scrollTo('myScrollToElement', {
             duration: 1500,
             delay: 100,
             smooth: true,
         })
     }
 }
Example #8
0
 handlePreviouspage()
 {
  listPostsActions.previouspage();
  scroller.scrollTo('nav', {
    duration: 1500,
    delay: 100,
    smooth: true,
  });
 }
Example #9
0
	handlePreviouspage()
	{  
		BookAction.previouspage();
		scroller.scrollTo('new', {
		  duration: 1500,
		  delay: 100,
		  smooth: true,
		});
	}
Example #10
0
 componentDidMount() {
   if (_.get(this.props, 'queryParams.dexcomConnect')) {
     scroller.scrollTo('dexcomConnect', {
       delay: 0,
       duration: 250,
       smooth: true,
     });
   }
 }
Example #11
0
    let goToContainer = new Promise((resolve, reject) => {

      Events.scrollEvent.register('end', () => {
        resolve();
        Events.scrollEvent.remove('end');
      });

      scroller.scrollTo('scroll-container', {
        duration: 800,
        delay: 0,
        smooth: 'easeInOutQuart'
      });

    });
Example #12
0
 simulator: (fields) => {
   scroller.scrollTo('cache_mem_scroll_position', {
     duration: 1000,
     offset: -50,
     smooth: true
   })
   dispatch(actions.startSimulation())
   let rows = fields.assembly.split("\n");
   for (let i = 0; i < rows.length; i++) {
     let row = rows[i];
     let tokens = row.replace(/ +(?= )/g, '').split(" ");
     let operation = tokens[0];
     let register = tokens[1];
     let address = tokens[2];
     fields = {
       fetchAddress: address,
       operationType: operation,
       register: register
     }
     dispatch(actions.cacheContentUpdate(fields))
   }
   dispatch(actions.stopSimulation())
 },
Example #13
0
 onClick={() => {
   Scroller.scrollTo("blogposts", scrollOptions);
 }}
Example #14
0
 onClick={() => {
   Scroller.scrollTo("projects", scrollOptions);
 }}
Example #15
0
 onClick={() => {
   Scroller.scrollTo("about", scrollOptions);
 }}