Jump to content
Search Community

Rmin

Members
  • Posts

    3
  • Joined

  • Last visited

About Rmin

  • Birthday 01/04/1990

Profile Information

  • Interests
    Up To Dated view of the world

Rmin's Achievements

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Rmin

    Wiggle Effect

    Thanks OSUblake, i just didnt know about the killTweensOf, i got my answer anyway tanx again.
  2. Rmin

    Wiggle Effect

    tanx m8 and here is the code pen: http://codepen.io/anon/pen/vNdvPP just Hover the main box , after mouse Out i want them to stop wiggling , bud idk how
  3. Rmin

    Wiggle Effect

    hey guyz, i wanna use it On mouseover , and finish it On mouseout event, and im not quiet goOd with javascript things $("#box").mouseout(function(){ TweenMax.staggerTo(".boxes",0.2,{scale:1},0.05); wiggle(".boxes"); function wiggle(selector){ $(selector).each(function() { wiggleProp(this, 'scale', 0.93, 1); wiggleProp(this, 'rotation', -5, 5); wiggleProp(this, 'x', -3, 3); wiggleProp(this, 'y', -3, 3); }) } function wiggleProp(element, prop, min, max) { var duration = Math.random() * (.1 - .2) + .1; var tweenProps = { ease: Power1.easeInOut, onComplete: wiggleProp, onCompleteParams: [element, prop, min, max] }; tweenProps[prop] = Math.random() * (max - min) + min; TweenMax.to(element, duration, tweenProps); } }); but i cant stop them On mouseout. Thanks.
×
×
  • Create New...