Jump to content
Search Community

pioSko

Members
  • Posts

    3
  • Joined

  • Last visited

pioSko's Achievements

0

Reputation

  1. @Diaco.AW Thanks helped a bit. I wasn't sure about the Left/Top position but it was the properties that made the most sense from the properties available. I saw other posts where people used the _gsTransform object to get some values. However, that object is not present in my targets :/ @jamiejefferson Sure, it does what I need. However, It's additional work for the client to get and write and then constantly get again all the values from the DOM elements. I was hoping for something internal in TweenMax. For example something like target.x or TweenMax.get(target, x) or something. Just a basic way of getting ALL/ANY properties that you are able to tween. Thank you for your help, anyway
  2. Hi Guys, I am trying to get the x and y properties of my targets before any tweens actually happen. Basically, when the page loads. The reason for this is that I have multiple targets in multiple carousel items and I want the tweens to always start from the initial values. At the moment, when the carousel is rotated to different items and then rotated back to previous items, the TweenMax.allFrom() method gets values from the "new" target positions. What I want to do is to run a function once that gets the values and writes them to a new data- attribute of each target. I have an example (below CodePen), but there must be an easier way :/
×
×
  • Create New...