Jump to content
Search Community

PointC last won the day on May 1

PointC had the most liked content!

PointC

Moderators
  • Posts

    5,142
  • Joined

  • Last visited

  • Days Won

    417

Community Answers

  1. PointC's post in HELP - transformOrigin/smoothOrigin problem was marked as the answer   
    Hi unpaidintern ,
     
    I believe smoothOrigin is for SVG only at the moment. It isn't going to work on regular DOM elements. If you look at this page: http://greensock.com/svg-tips - at the bottom Jack mentions possibly adding smoothOrigin for DOM elements in the future, but I don't believe anything is available at this time.
     
    If I'm wrong about that, I'm sure someone else will correct me.
     
    Here is a revised version of your pen with the rectangle rotating correctly.
     
    See the Pen ZbrLPG by PointC (@PointC) on CodePen
  2. PointC's post in Draggable - changing CSS properties onClick was marked as the answer   
    Hi there d11202 ,
     
    You didn't have a CodePen so I made a really quick one using your HTML above.
     

    See the Pen qOpeEV by PointC (@PointC) on CodePen
     
    I set the color change for a dragStart, but you can also set it for a click. 
     
    I hope this helps.
     
    PS For future reference - a CodePen is usually the fastest way for others to help with your questions. Check out this post on how to make one:
    http://greensock.com/forums/topic/9002-read-this-first-how-to-create-a-codepen-demo/
  3. PointC's post in rotating one object around center and keeping the child object position fixed was marked as the answer   
    Hey there pixelarchitect   ,
     
    Like this? 
    See the Pen KpLzpG by PointC (@PointC) on CodePen
     
    I just added a group around the part you wanted to stay perpendicular and rotated it the opposite direction.
  4. PointC's post in GSAP Script - How to add ? was marked as the answer   
    Hey Lynx   ,
     
    Looks like you may be looking for the quick start video and information posted here:
     
    http://greensock.com/get-started-js#loading
  5. PointC's post in Selectors issue. was marked as the answer   
    Hi Yes!,
     
    Looks like your Codepen wasn't loading GSAP and the variable m had quotes around it.
     
    Please try this: 
    See the Pen JdaeeW by PointC (@PointC) on CodePen
×
×
  • Create New...