Jump to content
Search Community

catico

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by catico

  1. Hi all, 

     

    I would like to transform an element using vh units rather than %, however when I use them the transformation produced is not correct.

    When I use 

    TweenLite.to(el, 1, {y: '100%'}) 

    the style applied to element is correct 

    style="transform: translate(0%, 100%) matrix(1, 0, 0, 1, 0, 0);"

    but when I'm trying to use 

    TweenLite.to(box2, 1, {y: '100vh'})

    the style applied to element is 

    style="transform: matrix(1, 0, 0, 1, 0, 100);"

    Thanks for any advice!

    See the Pen vKRpgz by anon (@anon) on CodePen

  2. Hi all, 

     

    I have svg with couple of rectangles and I would like to scale them randomly while hovering with respect to the svg origin. At the same time I would them to rotate individually around their axis.

    The problem is that either transform origin gets overwritten by svg origin or vice versa.

     

    See the pen . 

    The rotation is commented out.

     

    Thanks a lot for any suggestions!

    See the Pen RRowRx by anon (@anon) on CodePen

    • Like 1
×
×
  • Create New...