Jump to content
Search Community

DanTheProgrammerMan

Members
  • Posts

    3
  • Joined

  • Last visited

DanTheProgrammerMan's Achievements

0

Reputation

  1. Hmm it's too bad. For this particular circumstance I need to go back to using jquery animate (never thought I'd say that) I guess as it is able to properly handle REM units.
  2. Thanks for the response, that seems to work for EM, but for REM, using the set method sets it to top:0, left:0 still. In this pen I simply set the position to be exactly the same as its starting position, and yet we see it move to top:0px left:0px. What's up with that? http://codepen.io/anon/pen/pJPgyr Thanks
  3. Hello, I am trying to animate using rem units and am encountering unexpected behavior. In short, I'm doing this tween: TweenLite.to("#blue-circle-1", 1.2, { delay: 0.2, left: '-1rem', top: '4rem', ease: Elastic.easeOut }); But the blue circle actually ends up at top:0px, left:0px instead of the expected left: -1rem, top: 4rem. This is demonstrated in the codepen http://codepen.io/anon/pen/mJmeMa. Interestingly, if I run the same exact Tween again, after the first failed Tween, it will go to the proper position. In addition, when trying to do the same thing with EM units, as seen at this codepen http://codepen.io/anon/pen/zGwvPd, we see that the element does reach the correct position of left: -1rem, top: 4rem, but the animation itself is not fluid, it looks like it has teleported. And finally, the same animation works perfectly using the jquery animate function, doing what I'd expect it to do. See at this codepen: http://codepen.io/anon/pen/bdWVKN Can anyone explain why this is happening, or is this a bug? Thanks!
×
×
  • Create New...