Jump to content
Search Community

Gabuardi

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Gabuardi

  1. I'm doing an animation to show an order summary, I want first expand the width and then the height to create a fancy effect but seems that height is being seated wrong because in the end of the animation it has an extra height not desired. Help! 

     

    Both tweens works well individually but the problem is when I put them together.

     

    Expected:

    image.png.aa71179b2a1dd369163e119b34d2bd67.png

     

    Current:

    image.png.e52cf6e8b0364b77899806e098c8bee1.png

    See the Pen MWYJMJK by GabuDev (@GabuDev) on CodePen

  2. I am dealing with a bug that seems be present only on Microsoft Edge < 15.

    Someone here know how resolve it or what is causing this?

     

    Chrome, Safari, Firefox, IE 11.

    ezgif-6-2be5cd7905e4.gif

     

    Edge < 15

    ezgif-6-aeb427cfa07f.gif

    Here is the code for the animations.

    function scaleAndShrinkAnimation($element, maxWidthPercentage, durationSeconds) {
      var widthHalf = maxWidthPercentage / 2;
      return TweenMax.to($element, durationSeconds, {
        width: maxWidthPercentage + '%',
        top: '-=' + widthHalf + '%',
        left: '-=' + widthHalf + '%',
        repeat: 1,
        yoyo: true
      });
    }

      

    See the Pen d91be8899582064151804a5108557ca5 by bv-design (@bv-design) on CodePen

×
×
  • Create New...