gareth

BusinessGreen
  • Content count

    73
  • Joined

  • Last visited

Community Reputation

7 Newbie

About gareth

  • Rank
    Advanced Member
  1. Thanks for the clarification. I agree it is great value , thank you for all your hard work.
  2. Hi, I am creating a web app for a large companies intranet, will I require a commercial license?
  3. ah! thanks so much for demo, it is spot on. I agree it does feel more natural.
  4. ok so I can just grab the screen width (but will have to update on resize) var maxX = window.innerWidth; which brings me to my next question how do you control when the snap is triggered ? at the moment it looks like you have to exceed 50% for the menu to snap either way. Is is possible to change this to say 25% i.e if I drag past 25% the menu will snap to 100% ?
  5. Hi, I have simple menu that I want to drag from 5% of the screen to 100%. // changing this to "100%" does not work var maxX = 320 Draggable.create(".menu", { type:"x", throwProps:true, edgeResistance: 1, maxDuration:0.3, bounds: {maxX:maxX, minX:0}, snap: { x: [0, maxX] } }); The menu works fine if I supply a pixel value for the bounds and snap points. It is possible to use % ? thanks, Gareth
  6. thanks! that looks very helpful.
  7. thanks Jonathan. It does not return the "live" value of the attr while tweening i.e it always returns M100,300 C100,100 125,40 125,40, not the values as it is tweening. is it possible to do that?
  8. sorry please close, it is easier to just create a new tween for the circle. TweenMax.to("#circle", force, {x:bendAmount-100,repeat:-1,yoyo:true,ease:Power1.easeInOut});
  9. I would like to be able to get a svg point value as the tween is updating, so I can move another svg in sync: var curve = { d: 'M100,300 C100,100 ' + bendAmount + ',40 ' + bendAmount + ',40' }; TweenMax.to("#pole", force, { attr: curve, repeat: -1, yoyo: true, ease: RoughEase.ease.config({ strength: 2, points: 20 }), onUpdate: topper, onUpdateParams:["{self}"] }); function topper (tween) { // how do I get the values of curve ? } I am trying to animate the circle so it attached to the top of the line.
  10. thanks!
  11. This works: var curve = {d:'M100,300 C100,100 ' + force +',40 ' + force +',40'}; TweenMax.to("#pole",force,{attr:curve,repeat:-1,yoyo:true});
  12. Hi, How can I use a variable in the d section of this tween? TweenMax.to("#pole",force,{attr:{d:'M100,300 C100,100 110,40 110,40'},repeat:-1,yoyo:true}); I tried TweenMax.to("#pole",force,{attr:{d:'M100,300 C100,100' +force+',40' +force+',40'},repeat:-1,yoyo:true});
  13. perfect thanks!
  14. I have a simple animation which moves a 25% wide menu from off screen to 0: var menuMove = new TimelineMax(); menuMove.to(menu, menuSpeed, { left: "0", ease: Power4.easeInOut }) On my 27inch screen the animation is fast, on mobile it is very slow. Is there a way to tie speed to screen size?
  15. would removing IE8 support reduce file size significantly? If so I think it would be very worthwhile.