Jump to content
Search Community

Search the Community

Showing results for tags 'timelinlite'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Apollo13 Themes

    Random points in each repeat of animation

    Hello:-) I wanted to know is there any way to reuse same timeline to animate to random points at each replay? On each event I would like to make some animation that has mid animation random each time. This is what I came with(simplified code): var tl = new TimelineLite(), element = $('#element'); function onEvent(){ tl.kill(); //I don't know if this best way to clear whole time line tl = new TimelineLite(); var rotation = randomInt(-45,45); tl .to(element, 0.6, {rotation: rotation }) .to(element, 0.2, {autoAlpha:0}); } //I have other animation that returns it to start points on different event So in this animation element is rotated by different number each time event occurs and then hidden. Different animation returns it to start points. I wonder if I can achieve same thing without creating new timeline each time. And if this is not possible, could you tell me if this is most efficient way of doing things and I wont use all memory after while ? With kind regards.
×
×
  • Create New...