Jump to content
Search Community

martis last won the day on July 28 2012

martis had the most liked content!


  • Posts

  • Joined

  • Last visited

  • Days Won


martis last won the day on July 28 2012

martis had the most liked content!

About martis

Recent Profile Visitors

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

  1. Thanks Jack! In the first example, how could I apply some math like x:"100vw" - 100 ?
  2. do you have a debounce example as you mentioned? Also, is there a way to define a value as a function every time the playhead hits that tween? Or is that function only called once upon creation.
  3. Heya, Have there been any advancements in terms of updating values on resize without calling an onResize function and recreating the timeline?
  4. Using next (react 18) and for some reason .from() is not working on refs and #ids... .to() is working just fine. Any suggestions? It transforms the value to the .from() but does not animate back to the original value.
  5. Thanks Jack, I ended up having to abandon it and did something else. Have you guys considered adding some sort of reverse:false option to automatically do this?
  6. Hello, I am looking to have an animation only scrub in one direction. I am running into an issue with loading and having its start and end points jump around. Or it will appear higher on the page, then as images above it load, it pushes it down, but will not reset correctly using the example here: https://codepen.io/GreenSock/pen/abZjjNr Is there a method I should be looking at like `refresh()`?
  7. Ok removing my old types seemed to of worked. Lemme see if I can get things typed correctly This is working... const tl = React.useRef<GSAPStatic.Timeline>(); tl.current = gsap.timeline({ paused: true }); How does importing easing look like in 3.0? Nm... I see you can just now use them as string ease: "expo.inOut" This is great, thanks all!
  8. Hi all, I installed 3.0.1 and am having some issues importing while using Typescript. import { gsap } from "gsap"; [ts] Module '"gsap"' has no exported member 'gsap'. import gsap I was previously using @types/gsap. Do I need to update these definitions somewhere? Thanks!
  9. the xPercent, yPercent is working well and it seems to be updating correctly on resize. Can you give me any insights into when and how often those values are being calculated? Thanks!
  10. Hi Jack, It is to provide new values based on screen size for x, y movement. Which is now making me reconsider to use xPercent, yPercent. I'll experiment with this and see where it gets me!
  11. Hi all, Working with a gsap timeline in react as a `useRef` and wanted to know the best way to go about handling resize. Right now I am remaking the timeline on resize, but I am having to record its current progress and set it back to that progress if the animation is currently running. Is there a better method than totally remaking the timeline to "update it on the fly" based on new screen dimensions without using xPercent, yPercent?
  12. This was the case and I found the fix, sorry for the alarm
  13. Hi guys, Been working on transitioning some things over to Vue (nuxt) and am getting this error with SplitText... seems to be something with _slice and _split functions? Pretty sure what I am trying to split is not undefined client.js:531 [nuxt] Error while initializing app TypeError: Cannot read property 'length' of undefined at _slice (SplitText.js:142) at _split (SplitText.js:497) at webpackJsonp../assets/js/libs/greensock/SplitText.js.pkg.SplitText._globals.SplitText.webpackJsonp../assets/js/libs/greensock/SplitText.js.p.split (SplitText.js:545) at new webpackJsonp../assets/js/libs/greensock/SplitText.js.pkg.SplitText._globals.SplitText (SplitText.js:121)
  • Create New...