Jump to content
Search Community

Search the Community

Showing results for tags 'sibling'.

  • 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...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Hello I'm trying to find how to reverse all sibling tweens when clicking on one of them and then play its tween. Any Idea? Thanks $j('.menu_link_parent').each(function(index, el) { var $this = $j(this); var subMenu = $this.find('div.submenu'); var timeLine = new TimelineMax ({ paused: true, reversed: true, align: 'sequence', }); var anim = timeLine.staggerFromTo( subMenu, 0.3, { rotationX : 90, autoAlpha : 0 }, { rotationX : 0, autoAlpha : 1, onStart : app.fn.common.makeVisible($j('.tw')), onStartParams : $j('.tw'), }, 0.3, '-=0.3' ); $this.on('click', function(event) { event.preventDefault(); event.stopPropagation(); /* TODO : REVERSE ALL SIBLINGS FIRST */ anim.reversed() ? anim.play() : anim.reverse(); }); });
×
×
  • Create New...