Jump to content

Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

About Chris7777

Contact Methods

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Chris7777's Achievements



  1. Cheers Jack! No worries about the typo's, 90% of my bgus bugs are spelling mistakes... Thanks for the extra approaches there, makes sense. I'll adjust my snippet to match up - always good to know of some alternatives. My pleasure, easily the most "bang for buck" paid software that I use.
  2. Thanks again @Visual-Q . I had a play with that approach and got something going that works in my particular use case: https://codepen.io/chrisk7777/pen/xxgdRbM?editors=0010 const DevTools = (() => { let instance = null; return { scrubber: (animation) => { if (instance) { instance.kill(); } instance = GSDevTools.create({ animation }); } }; })(); // Usage const t = gsap.fromTo(".grey", { rotate: 0 }, { duration: 1, rotate: 360 }); DevTools.scrubber(t); // Or an id
  3. Nice one Visual-Q. I'll have a poke around and get back with an update using that approach
  4. Hi, Two queries about the GSDevTools. Query 1: Easy one to start with. When using the CodePen linked on the GSDevTools page (with the 3x sliding boxes). https://codepen.io/GreenSock/pen/MEYdxr?editors=0010 I experience two issues - the dropdown doesn't show the currently selected tween and when selecting "grey" it actually shows the orange tween. Is this normal / expected? I'm probably just misunderstanding something... See video attachment Query 2: What is best approach to using dynamically generated tweens with GSDevTools. I have boiled it down to a very basic case here: https://codepen.io/chrisk7777/pen/rNjyvwp?editors=1010 `updateList` is undocumented, and I don't think I'm using it correctly. I tried recreating the GSDevTools after each button click, but that also errors out with _.dur is not defined. Is there a preferred way to using GSDevTools with tweens that are built on the fly? Thanks! Screenshot-20210402-173950.mp4
  5. Thanks @ZachSaucier ! I just wanted to double check before going down the wrong track. Makes sense regarding performance, something I had not* considered. Cheers! Chris
  6. Hi all, This is a minor question, so no urgency. Is there a way with the GSDevTools to alter tween values without refreshing? For example, in this demo GSAP CodePen if I wanted to see the impact of .grey completing at `x:300` instead of `x:700` I would need to alter the code, refresh, and (potentially) loose any other state such as the playhead position. Context: I need to construct an animation with lots of small finicky deltas. About a dozen separate parts with lots of minor movements (almost like skeletal animation). Alternatively, I'm thinking I could possibly rig up dat.gui (https://web.archive.org/web/20200227175632/http://workshop.chromeexperiments.com:80/examples/gui/#1--Basic-Usage) to expose particular variables and feed that back in to gsap but if there is a built in solution that would be much preferred and probably less fiddly that dat.gui. Cheers!
  7. Hi @GreenSock - I'm not the OP but this helped me track down an identical issue (production only issue with React). I'm going to jot down some notes in case others hit something similar. My setup: React + TypeScript + Webpack4 using ts-loader with default settings. gsap 3.0.5 Like most things Webpack its really difficult knowing what is going on under the hood, even after reading the documentation (https://webpack.js.org/guides/tree-shaking/) I can't confidently say if Webpack4 does tree shaking or not. By following the advice by Jack in my app's entry file, I was able to force CSSPlugin to remain available: import { gsap } from 'gsap' import { CSSPlugin } from 'gsap/CSSPlugin' // Force CSSPlugin to not get dropped during build gsap.registerPlugin(CSSPlugin) This was done just once (in my entry file) and then all child modules/components were able to successfully use it without issue.
  8. Chris7777

    React and GSAP

    @axe-z - not sure if you mean my example when you say "the previous example". It's a shame they are you driving you nuts, I simply put them up to try to help other people correctly set up React with Greensock. Regardless - I updated my codepen with a R16 version: It should be noted I did nothing but update the cdn links - no code changed for it to work with R16. You might be talking about different examples, in which case, it might help to outline what isn't working? Its worth noting you don't need react-transition-group to use greensock - in fact, I would say you should probably pick one library or another.
  9. Chris7777

    React and GSAP

    @Cristiano very nice example. Just be mindful of doing anything in render. You are better off leveraging the lifecycle methods for components. If you get a tic, check out my previous posts, and in particular this codepen If you have a specific question, please ask, and I can do my best to answer.
  10. Chris7777

    React and GSAP

    I've yet to actually play with React Native, always leaning towards responsive sites instead. Was there a particular problem you were hitting? Btw - agree on the default transition / animation solutions for React. That's why I was so happy when I found it so simply to use React with Greensock - best of both worlds.
  11. Double post - but just read your excellent article "will-change" as well the corresponding chrome bug tracker. So disappointing - as you said, the agent sniffing thing, man, it feels like a huge step back. For all the hate Flash got, god I miss it and its consistency
  12. I definitely see blur when I don't round off my numbers - so for example, I will always do: TweenLite.to(foo, 1, { x: Math.round(e.target.x) }); And yeah, this has been happening for a while. It just seems with the most recent update, all the little work arounds and fixes no longer work, like: transform: translate3d(0, 0, 0) scale(1); font-smoothing: antialiased; backface-visibility: hidden; It's also the first time I have seen the blur on the gsap site. I have a feeling that Google really sees the web in a very specific way - believing that it should only be text and images for a good user experience. And they're probably right for the majority of sites, as you don't want every last site spinning, and shaking, and grooving - but they need to understand there are exceptions. Movie promotion sites, game sites, etc probably have the right to be a bit more flashy. I'm working in the elearning space, and sometime it makes sense to have things animate around to demonstrate an idea or concept. Anyway, at least they aren't rewrapping entire sites in a cut down frame (cough AMP, cough AMP https://www.ampproject.org/)
  13. @PointC funny you mention Firefox - booted it up for the first time for proper-dev in yonks as the inspector in Chrome was just too slow. Firefox feels surprisingly fresh and quick.
  14. Yeah I totally knew it wouldn't be gsap-related. Chrome's been a pain recently - I've been working through clients who are getting the "Not secure" marker on v56 (any page that has a login/password field but no https/ssl cert gets flagged). I understand the "why" but, it feels like its shoved down our throats sometimes. I like the idea of a consistent message from users - I will report this to them.
  15. Just a heads up, the latest Chrome (and only the latest, v56) is causing some issues with finished animations appearing blurry. I've taken a screenshot of your CDN download modal, note the code section, everything appears to be a .5px off, causing a subtle but very obvious blur. I've noticed this around the web (for example on the Stripe.com feedback page, they had a fancy animation that resulted in a similar blur), but just wanted to make you guys aware of it.