rflc
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by rflc
-
-
Hello. I'm stuck tryin to reverse a timeline controlled by page scrolling. I'm calling a function with tl.progress(%) everytime the scroll event fires, but when I apply tl.reverse() and tl.progress(%) or simply tl.progress( decreasing %) nothing happens. Not sure what I'm doing wrong.
-
-
Hi guys, sorry it is taken me this long.
@mikel That's a very clever way to center elements. I need to translate to the center after the element is positioned with CSS in order to make the text to wrap around it. But I will save your technique for the future. Thanks!
@GreenSock Exactly, I need this to work in in a responsive design. Below is a demo, basically I want to animate an svg in the center of the screen and then scale it down and translate it back to its original position. Then I want to replace the svg with a picture and display the wrap around text. I worked around some issues and was able to set the parent to position: relative, but I'm still unable to center it in a responsive manner.
-
@GreenSock Thank you so much. I actually have a related question, how can I re-position an element without position:relative to the center of the screen? I had to position the element with only margins to float text around its initial (final) position. When I try:
TweenMax.set('#myElement', {left:"50%", top:"50%", yPercent:-50, xPercent:-50});
It actually moves the element to its top left (off screen)
-
Hi, this is my first post, and as such, this is a noob question. How can I reset an object's position to the top left corner of its parent after it has been scaled?
Edit: I was abled to solve it, I just needed to reset the transformOrigin property to the top left of the object.
Playing a progress controlled timeline in reverse
in GSAP
Posted
Yes I used that representation for illustration purposes. I'm supplying values from 0 to 1 and viceversa when scrolling back. This is what I got so far: