Jump to content
Search Community

Copy-Paste-Pain, how to solve this?

Osh test
Moderator Tag

Recommended Posts

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..image.thumb.png.556c16316b9ab675c15f94cd656aa7ec.png
 

 

What will happen?

Well, when you copy ease script and paste it on your code in  it will show up like this 😕 
image.png.46178d4c54bcfda449edb2f50410b9a0.png
see the gap...?
 

Now image when you are doing in costom... 
image.thumb.png.311c62c029ecf86856b12269b8e8ba28.png
 

Lucky that those number works (second parameter at create() ) otherwise I will throw my keyboard away from balcony..
image.thumb.png.e6a13afe2660f0d216d1c08e46c2fd6d.png

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

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

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.image.png.466aeecbdf938567d45201e5e2cb4c6b.png
 

I have also tried in VSC, same result

image.png.d9d090b9adbfacfb768f449e5bd719ae.png

 

I have tried to paste by command shift+ctrl+v, it didn't work 😕 

Link to comment
Share on other sites

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

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

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..
image.png.bc6fefccd25b2df8f45370c145b84fce.png

 

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...