Jump to content
Search Community

yulia

Members
  • Posts

    39
  • Joined

  • Last visited

Posts posted by yulia

  1. On 8/8/2018 at 7:05 PM, mikel said:

    Hi @yulia ,

     

    Again the hint: a CodePen would be very helpful.

     

    You may be able to try this:

     

    See the Pen LBOmRL by mikeK (@mikeK) on CodePen

     

    Everything you need can also be found in the docs.
    For example: .getLabelBefore ()

     

    Happy tweening ...

    Mikel

     

     

    Hello! One more, I hope last, question. How to add autoplay the next part in such code? I found examples only for playing different timelines :( Please, help

  2. Hello! I had another question. Now the animation is playing on the scroll and on the click forward and backward.

    When clicking Prev btn animation plays reverse to the label, but the employer wants the animation to start play from the label. If I change reverse() to restart(), then when I click Prev btn, the entire timeline begins playing from the very beginning not from label.

    Please, help!

     

    This is how the project should look like And now it looks like that, but the slides are played incorrectly on the Prev btn. They show the animation in the opposite direction, and not from the beginning of the slide/

     

    $('#next').on('click', function() {
      mainPage.play();
    });
    $('#prev').on('click', function() {
      mainPage.reverse();
    });
    
    
    $('body').on('mousewheel DOMMouseScroll', function(e) {
      if (typeof e.originalEvent.detail == 'number' && e.originalEvent.detail !== 0) {
        if (e.originalEvent.detail > 0) { // Down
          mainPage.play();
        } else if (e.originalEvent.detail < 0) { // Up
          mainPage.reverse();
        }
      } else if (typeof e.originalEvent.wheelDelta == 'number') {
        if (e.originalEvent.wheelDelta < 0) { // Down
          mainPage.play();
        } else if (e.originalEvent.wheelDelta > 0) { // Up
          mainPage.reverse();
        }
      }
    });

     

  3.  

    Dear @mikel, please help me with little problem ☺️

     

    Animation stops working, if after this block

     

    .to('#railsanimate', 0.5, {
      animation: 'bgscrolling .1s infinite',
      ease: Power4.easeOut
    }, '-=3.5')

     

    add this block
    .to('#slide6train2', 0.2, {
      y: 2,
      repeat:-1,
      repeatDelay:0.5,
      yoyo: true,
      ease: Power4.easeOut
    }, '-=0.2')

    Somewhere here is a mistake, but I can not understand where exactly

     

    This animation stops working


    .to('#result', 0.8, {
      transform: 'scale(1)',
      ease: Power4.easeOut
    })

  4. Hi @mikel Thanks for the answer!

    I already did something like that: 

    See the Pen MBEJWZ by yuliarushay (@yuliarushay) on CodePen

    My task is to switch between scenes by clicking on the button up and down, and also on the mouse scroll.


    The important part is that I animate the same element in different scenes.


    The animation in my code works well only Down. If you press Up, the animation is not played backwards, but restarts.

    I need the Circle to increase when you press the Down button and smoothly decrease in the opposite direction when you click on the Up button.

    And I do not understand why the scroll works as it works :(

     

    Can you fix my idiotic code? Thank you in advance

  5. Thank you!

    My employer does not care if I know how to do it or not??

    This is how the project should look like as a result (these are three scenes out of six). And I did everything.

    I used tweenmax and scrollmagic in my project. The problem is that the animation is gradual (elements move one by one during the scene until it reaches the trigger). 
    As triggers, I use invisible divs equal to 100vh (I understand that this is a dumb way to solve the problem ?)
    But I need to run the animation simply by scrolling event (Run all the animation of one scene at a time). 

    That's why I found codepen example that we are discussing. How to use scrollmagic without trigger elements (using only the mouse scroll-event and click) I do not know ?

  6. Hello! I'm trying to apply an animation to the same element in different time lines. But it works in jumps - without a smooth transition between the states of the element.
    I have a task to do animation with many elements inside one screen.
    I have several scenes that need to be run by scrolling or clicking on the menu. Under the link all works approximately, as it is necessary to me. One problem is that the animation does not go smoothly from the first state to the second state and then to the third.

    See the Pen PBjeyN by yuliarushay (@yuliarushay) on CodePen

     

    Thanks!

     

×
×
  • Create New...