Osh Posted August 4, 2021 Share Posted August 4, 2021 Let's say you are going to Doc then Ease. In GreenSock Ease Visualizer if you click example power2 and you want to copy just only ease script.. What will happen? Well, when you copy ease script and paste it on your code in it will show up like this 😕 see the gap...? Now image when you are doing in costom... Lucky that those number works (second parameter at create() ) otherwise I will throw my keyboard away from balcony.. I don't know if this is realted to GSAP.. But I felt there must be a way to copy those script without painfully.. Can someone give me a hand how to copy-paste from gsap Vizualiser instead writing manually? 😅 Link to comment Share on other sites More sharing options...
OSUblake Posted August 4, 2021 Share Posted August 4, 2021 What part are you trying to copy? "power2.out" ease: "power2.out" gsap.to(graph, { duration: 2.5, ease: "power2.out", y: -500 }); I copied all those directly from the editor. What OS and browser are you using? Maybe you need to paste without formatting. Link to comment Share on other sites More sharing options...
Osh Posted August 4, 2021 Author Share Posted August 4, 2021 22 minutes ago, OSUblake said: What part are you trying to copy? "power2.out" ease: "power2.out" I am trying to copy ease:"power2.out" and tried to copy as well gsap.to(graph, { duration: 2.5, ease: "power2.out", y: -500 }); 23 minutes ago, OSUblake said: I copied all those directly from the editor. What OS and browser are you using? Maybe you need to paste without formatting. I'm using Windows, browser Chrome. Yeah, I think I must find out how to copy witout formatting. What is the editor program you are using? I'm using IntelliJ IDEA. I tried to paste to text , it didn't work. I have also tried in VSC, same result I have tried to paste by command shift+ctrl+v, it didn't work 😕 Link to comment Share on other sites More sharing options...
OSUblake Posted August 4, 2021 Share Posted August 4, 2021 I'm also on Chrome and Windows. Every app I tried pastes it correctly. Even tried other browsers. Not sure what's going with your setup. 🤷♂️ Anyone else having problem? Link to comment Share on other sites More sharing options...
Carl Posted August 4, 2021 Share Posted August 4, 2021 gsap.to(graph, { duration: 2.5, ease: CustomEase.create("custom", "M0,0 C0.46,0 0.496,0.014 0.616,0.088 0.734,0.161 0.884,0.4 1,1 "), y: -500 }) i just copied the entire tween code with custom ease and it comes in as one line (mac chrome). FWIW in all my years of using the ease visualizer I've never seen those line breaks. Link to comment Share on other sites More sharing options...
elegantseagulls Posted August 4, 2021 Share Posted August 4, 2021 ease: " rough({ template: none.out, strength: 1, points: 20, taper: 'none', randomize: true, clamp: false })" 'rough', and others pastes like that for me (FireFox, Mac OS). For me, it's not ideal, but only takes a second to multi-cursor it back to proper format. Link to comment Share on other sites More sharing options...
geedix Posted August 4, 2021 Share Posted August 4, 2021 Ah, so it's a Firefox thing! I've had this happen occassionally -- I go back and forth between Chrome and FF. Link to comment Share on other sites More sharing options...
akapowl Posted August 4, 2021 Share Posted August 4, 2021 45 minutes ago, geedix said: Ah, so it's a Firefox thing! I've had this happen occassionally -- I go back and forth between Chrome and FF Similar for me. Copied in Chrome/ium browsers: gsap.to(graph, { duration: 2.5, ease: "power2.out", y: -500 }); Copied in Firefox: gsap.to(graph, { duration: 2.5, ease: " power2.out", y: -500 }); Link to comment Share on other sites More sharing options...
Osh Posted August 4, 2021 Author Share Posted August 4, 2021 I know this is sound dumb but .. can it be my windows system? Because how can other copy paste perfect from google chrome.. I have tried FireFox Developer Edt, that didn't work either 😕 The funny fact that this teacher from Udemy also having same problem with copy paste.. Link to comment Share on other sites More sharing options...
OSUblake Posted August 5, 2021 Share Posted August 5, 2021 5 hours ago, Osh said: I know this is sound dumb but .. can it be my windows system? Doubt it because the behavior isn't consistent. Now it's adding line breaks for me. It definitely was not doing that earlier. 🤷♂️ I think think the main problem is that HTML for that part is using a bunch of different elements, like select and div. It's like that to allow you to change some of the options, although I don't know if that's obvious. If we added a copy button to it, what should it copy? Link to comment Share on other sites More sharing options...
Osh Posted August 5, 2021 Author Share Posted August 5, 2021 5 hours ago, OSUblake said: If we added a copy button to it, what should it copy? The whole code/script would be nice !! Much easier! I Can you please do something similar like this site https://www.npmjs.com/package/gsap? ! 1 Link to comment Share on other sites More sharing options...
Cassie Posted August 5, 2021 Share Posted August 5, 2021 Yeah, I've had this copy problem sometimes but not other times. It seems really inconsistent - I only use one browser (chrome) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now