Jump to content
Search Community

superbenj

Premium
  • Posts

    19
  • Joined

  • Last visited

Posts posted by superbenj

  1. Another question.

    If I want to create a smooth animation for the content to disappear/appear, can I use a keyframe?

    In my pen, the first animation look's like it waits until the end of the video before starting it?

     

     

    once(video, "loadedmetadata", () => {
     tl.fromTo(video, { currentTime: 0 }, {
          currentTime: video.duration || 1,
      duration: 1,
      ease: "none"
        })

    tl.to(".panel-1", {
     keyframes: [
      {yPercent:0},
      {yPercent:10, onComplete: () => { console.log('complete')}},
      {yPercent:-100, ease: 'sine.out'}
     ]
    },1/4);
      tl.to(".panel-2", {
     opacity:1,
    },"<1.5");
      
      tl.to(".panel-2", {
     keyframes: [
      {yPercent:0},
      {yPercent:10, onComplete: () => { console.log('complete')}},
      {yPercent:-100, ease: 'sine.out'}
     ]
    },2/4);

  2. Hello

     

    I'm trying to create an animation based on the duration of a video that is played frame by frame.

     

    Actually, the first text panel disappears when the video start and the last text panel doesn't show..

     

    Any advice on changing the first text panel after 1/3 of the duration of the video, then showing the second panel for another 1/3 and finally the last text panel for the last 1/3 and continuing the scrolling?

     

    Thank you very much for your time

    See the Pen ExovmRZ by superbenj (@superbenj) on CodePen

×
×
  • Create New...