Search code examples
jqueryflashzeroclipboard

How does bit.ly do their zero clipboard implementation?


When copying a link on bit.ly they use an interesting flash effect. I have created a screencast on the topic. I am wondering how to go about implementing this effect.

If anyone knows of a simple way to implement zero clipboard please reply. I have found zero clipboard to be tough to implement without issues.


Solution

  • Are you talking about this effect: http://jsfiddle.net/6XfMs/6/ ? It's easy to implement using jQuery animation:

    jQuery('#element').animate(
    {
       opacity: 0,
       top: '-=100',
    }, 500);