Grow your CSS skills. Land your dream job.

Copy link/text to Clipboard

  • # September 9, 2012 at 12:00 pm

    I’m using ZeroClipboard for copying my short url’s to the clipboard. This can either be a link or actual text.

    What I’m trying to do is, instead of having a button to copy, I’d rather have the user click on the link/text and it be copied without a button.

    When the user clicks, I’d like the link/text to fade out and new text to fade in that says “Copied!”.

    I am using bit.ly to generate the short URL’s using a custom domain.

    Anyone have an idea? Here is a link to a rough example. http://jsfiddle.net/4QtLC

    # September 9, 2012 at 5:21 pm

    Oops. Not solved just yet. Can someone help me with a little jQuery?

    Click on the URL in the html box. I need the “Copied!” to fade in and out.

    http://jsfiddle.net/ChristopherBurton/wsfLH/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".