en en en en en en en en en en en en en en en en fa en en fr hbs_lat en en en es en en en ms en de en fr en en en ca en en en en en en en hbs_lat hbs_lat en en fr en en en en en en en en en fa en en en en en en fi hbs_lat en en en en en en en en en de es en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en nb en en en en en en en en en en en en nb en en en en en en en hbs_lat en en en fr en en en it en en en en en pt en en en en en en en en en en en fr cv es tr es en en en en ms en en en en en en fr en hbs_lat en en en en en en en fr cv es tr es en en en en de en en en ca en en en en en
rhernando, thanks for the suggestion, that sounds like it would work but not the best for performance. jamiejefferson, that did the trick with such minimal coding, props for your advice !
Detecting stillness of a Draggable object (with throwProps)
justin_hackin posted a topic in GSAP
justin_hackin replied to justin_hackin's topic in GSAP
GreenSock, thank you for the awesome support. I tried to drop in this Draggable replacement but it didn't seem to work, I got the following error in the console: Uncaught TypeError: Cannot read property 'parentNode' of null Draggable.min.js:14 GDraggable.min.js:14 PeDraggable.min.js:14 keDraggable.min.js:14 Somewhat hard to debug with the .min ... any clue what's going on ? This isn't a big deal so I wouldn't sweat too much over it. But if there's a quick fix I'd much appreciate knowing about it
If I go here http://www.greensock.com/draggable/ and right click item, then click somewhere not on context menu, the items is held dragging until I click to release. I'm using Google Chrome Version 31.0.1650.57 on Linux Mint 15 Olivia using Cinnamon WM It doesn't happen on Firefox V 24.0 though. Thanks for all the help. I'm reluctant to disable the right-click altogether, it might be more annoying than this little inconsistency is. Its nice to know the issue doesn't happen everywhere, curious to know what browsers/OSes don't produce this behavior.
justin_hackin posted a topic in GSAP
One thing I noticed with Draggable plugin is that when you right-click a Draggable element and then click outside the context menu, the mouse stays in the mousedown state dragging the object until you click again. This is an undesirable feature for my application. Any suggestions on how to disable this behavior ?
Performance issues with tweening many three.js objects at once
justin_hackin replied to justin_hackin's topic in GSAP
Carl, you are awesome, I was bashing my head up against this for some time, I'm really happy that you've solved this issue... I thought I tried something like this before but it must have been something else that was going wrong. The only demos I've seen used the ticker for animate, not render, maybe that's what solved my problem. Anyway, keep up the great service ! Don't think we'll need a license for now, but hey, do you folks take donations ?
Performance issues with tweening many three.js objects at once
justin_hackin posted a topic in GSAP
I recently started using GSAP for animating three.js as an alternative to https://github.com/sole/tween.js, commonly used for this. It made it really easy to do something like: make a cube spin and when it stops, wait until one of the faces are square (through a 90 degree rotation with repeat -1 switched on/off). However, I'm struggling with severe performance issues in tweening many objects at a time. I think this has to do with having to create a duplicate copy of the objects to store the tween data rather than just being able to directly tween object variables without having to write in onUpdate. This makes writing the tween a tad more tedious than tween.js, and it has been no easy task to convert from tween.js to GSAP. Once I finally did figure out how to do this, I found the performance was severely worse than using tween.js. I created an example modification of a three.js example which closely relates to the project I'm working on: Original, using tween.js: http://jsfiddle.net/justin_hackin/J3k9N/ (Tweening @ 292) Single variable for closure in loop, not working: http://jsfiddle.net/justin_hackin/dHLcg/ TweenMax demo: http://jsfiddle.net/justin_hackin/6bFJc/ (Tweening @ 298) I'm wondering, are these performance issues happening because each TweenMax closure is trying to store the whole object copy array ? I don't quite understand the deeper aspects of JS, excuse my ignorance. Am I doing something wrong here ? I really love these GSAP libraries so I hope I can make it work for the project I'm working on. If not, I really hope the developers will consider making the code more friendly to this kind of use. The project I'm working on might eventually be willing to invest in such a feature if it would take some efforts to implement, please let me know what could be possible. Thanks, ~Justin
“GSAP is awesome - I just dropped all my [custom] code, like a thousand lines of code and everything is so so much simpler, smoother and much easier to read for other developers! You have no idea how cool it is to offload that thought process to you guys!”
“I will never say it enough but @greensock you are absolutely amazing and you have no idea how much time and brain cells I have spared thanks to you 🥰”
“Honestly think without GSAP, I would have changed careers by now; it's that good.”
“I was astonished by the speed and versatility of animating with GSAP.”
“...obviously GSAP is incredible.”
“I really need to commit to using GSAP more in my daily work & demos. I love pushing native CSS animation as far as I can but every time I use GSAP I’m just blown away. Keep up the great work!”
“Massive shoutout to GreenSock for having an amazing product with fantastic documentation, hugely talented support staff and an active and helpful community. If you do anything with web animation you should *definitely* be using them.”
“No other animation library is as intuitive, rigorous, conceptually simple and well curated as GreenSock’s.”
“I am more and more amazed every day, and very glad that I decided to get a business license.”
Sign Up For Our Newsletter
Get the latest updates on GreenSock products, exclusive offers, and more right in your inbox.
Your information will always be kept confidential.
Thanks for signing up!
Now you'll begin receiving the latest GreenSock updates, exclusive offers, and more right in your inbox. Welcome aboard.