Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

retropunk last won the day on April 16 2015

retropunk had the most liked content!

retropunk

ShockinglyGreen
  • Content Count

    180
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by retropunk

  1. That’s it!

    sorry I’m on the train without my laptop. But this looks great. 

     

    I didnt realize you you could split more than once!

    my head just exploded!

     

    thx for this!

    • Like 1
  2. Hey guys, if I have an H1 tag and it has 4 lines of text, can I mask it like this with SplitText?


    This animates each line but is there a way to mask the lines with SplitText? (hope, hope)

    Like a trick with overflow hidden on each line?

    tl.staggerFrom(mySplitText.lines, 0.25, {autoAlpha: 0, y: 10}, 0.12);

     

    Thanks!

    SplitTextHelp.jpg

    • Like 1
  3. yeah the draggable was just for fun. Probably confused it. :)

     

    You basically summed it up with the 2 statements. 

    A pre-determined animation that kicks off as soon as the user tilts beyond a certain threshold, and make it relative to that start position.

    Linking the speed of the animation to the value of the tilt would be ideal.

    Going backwards wouldn't be necessary.
    ....

    I forgot about timeScale!  DOH!

    I think I understand now that I could use the tilt value to control the timeScale. I need to create a sample using that.

     

    On mobile devices the DeviceEvents are constantly firing so starting/pausing/resuming the animation seems tricky. It's not just a simple animation start.

    Maybe I need a boolean to check if the animation state?

     

    I probably need sleep. :)
    ...

    ok, so I got it working closer to what I want. The code for the timeScale is not pretty. Ideally it would be tied in to the deviceOrientation beta value so it's more granular.

    http://retropunk.com/play/sensors/tween.html

    My SVG path is wacky too, but for now this hack shows my idea.

     

    Time for sleep!

     

    Thanks guys

     

     

     

    • Like 1
  4. Hi everyone. 

     

    I am looking to use the Device Events (DeviceOrientation or DeviceMotion) to move and object along a predetermined path with GSAP.

    Right now I have 2 demos. 

    Demo1: Animate to path

    See the Pen VEzMbg by SnapToPixels (@SnapToPixels) on CodePen

    Demo2: Device Orientation that uses TweenMax += on the Y axis. **iOS only for now, Android later

    http://retropunk.com/play/sensors/drag.html

     

    I want to combine these 2 ideas.

    So that when I tilt the phone and hold between specific values (Demo2) the animation will start/stop along the predetermined path (Demo1).

    Right now my Demo2 only pushes along the Y with +=* depending on the position. It's hard coded for now until I find a more dynamic solve.

     

    I know how to make a Timeline tween with GSAP but is it possible to increment through the timeline?

    I saw the GSAP article on Function-based values, but I'm hitting a wall at the moment. 

    I'm counting on some fresh code eyes to help me out.

     

    Hope that makes sense.

    Thanks everyone!

     

     

  5. When starting out with coding it's best to try and reduce your project into smaller parts.

    Check out the plethora of examples on Greensocks CodePen here

    See the Pen popular by GreenSock (@GreenSock) on CodePen

     

    The banner you are trying to build above could be created so many different ways! Finding a solution that you can relate to can be daunting in the beginning.

    This GSAP example should have all the parts you would need to replicate that banner

    See the Pen KJxyF?editors=0010 by GreenSock (@GreenSock) on CodePen

     

    Good Luck!

     

    • Like 2
  6. 5 hours ago, fadyhenen said:

    @davi Hi Davi

     

    I followed the steps but it's not working, Can you check the animated file attached?

    I want to know what i miss, :) Archive.zip

    Thank you so much in advance :) 

     

    @fadyhenen

    What are you trying to do? I looked at the FLA and your code starts with a TimelineMax declaration

    var tl = new TimelineMax({repeat:3, repeatDelay:1});

    but then you don't use it. Everything after that TimelineMax declaration is a TweenMax method.

     

  7. Animate CC and GSAP certainly make it easy to build banners regardless of timeline or coded animation. I use it a lot.

    I also use GSAP for DOM.

    I look at the creative and make a determination based on the storyboard frames which tool would serve the animation best.

    I do prefer hand coding but there are short cuts and conveniences that Animate CC provides that are usually worth the compromise.

     

    As long as the end result is within spec, performant and makes the client happy...

    • Like 5
  8. Jonathan, thanks for that tip. I will check it out.

    Lately, I've been staying away from sprite sheets because they use background-image and that jitter bug happens. 

     

    Thanks again

    Patrick

    • Like 3
  9. yes, but Blake's demos are incredibly concise and easy to read. I would think his hitTest validation should be enough to get you started down the right road.

    it might be tough to find the perfect answer unless someone already built that exact method.

     

    If you check Blakes CodePen profile he's done some other demos with hitTest code via GSAP Draggable.

    • Like 1
×