with Imagination: by Dustin Diaz

./with Imagination

A JavaScript, CSS, XHTML web log focusing on usability and accessibility by Dustin Diaz

Re: Gmail: A Behind the Scenes Video

Thursday, August 9th, 2007

In response to the GMail Behind the scenes video (see official GMail Blog for more details), my co-worker Lindsey and I decided to add our 10 second clip to the rest in hopes that ours will be considered for the final collaborative masterpiece. Only after quite a few trial and error attempts were we able to pull it off since it involved taking the Gmail M-velop (entering from the left) and dropping it into the computer monitor; only then to swipe it away off the screen (exit right).

With a little help from YUI’s Animation utility, it was rather simple as such:

YUI Animation M-velope

YAHOO.util.Event.onDOMReady(function() {
  var h = YAHOO.util.Dom.getViewportHeight() - 1; // subtract a pixel so we don't get scrollbar
  var w = YAHOO.util.Dom.getViewportWidth()  + 590; // add width of M-velope
  function f (e) {
    var Anim = new YAHOO.util.Motion('envelope', {
        points: {
          by: [0, h]
        }
      },
      0.75,
      YAHOO.util.Easing.bounceOut
    );
    Anim.onComplete.subscribe(function() {
      window.setTimeout(again, 1000);
    });
    Anim.animate();
    function again (e) {
      var Anim2 = new YAHOO.util.Motion('envelope', {
          points: {
            by: [w, 0]
          }
        },
        0.5,
        YAHOO.util.Easing.backIn
      );
      Anim2.animate();
    }
  }
  window.setTimeout(f, 200);
});

This essentially enabled us to produce this wonderful piece. Go ahead, have a look see here at our Youtube clip: Lindsey and Dustin pass the M-velope.

Nevertheless, I still find the Making of the M-velope drop much more entertaining. Cheers!

16 Responses to “Re: Gmail: A Behind the Scenes Video”

  1. Cameron Adams

    Hehehe, that’s cool Dustin!

  2. SEO and Php programmer Thailand

    sorry dustin i want to see your youtube clip but youtube is blocked in thailand.any other link where i can see

  3. napyfab

    Amazing :)

  4. Ross Bruniges

    I like it, I like it lots!!

  5. Paul Duncan

    Awesome!! but then again I’d expect nothing less from you :-)

  6. James Rosten

    Hahaha, that's hilarious. Best part is that you used YUI for a GMail video. And, man, I wish I had that large a screen for my Mac, makes my iBook 14" look puny.

    Long live cross country running Javascripters!

  7. Stephanie

    Nice work!

    I am soooo jealous of your monitor.

    We had a similar idea: http://www.youtube.com/watch?v=hVsxOxE_F1s

  8. SEO and Php programmer Thailand

    sorry guys , is their any other way of watching this clip as youtube is blocked here in thailand, i try to use anonymizer still not work. Any ideas

  9. Ray

    Nice vid dustin - not so pretty are ya ;)

    with regards to the guy trying to view from thailand:

    first you gotta get yourself an flv player such as >> http://www.flvclick.com/

    then go to >> http://www.kissyoutube.com/watch?v=V-xWMN5GrC0 ( vars after watch? takes you to dustins vid on youtube), download it and make sure to save it as .flv.

    Then open it with the flv player, hey presto.

    have fun

  10. SEO and Php programmer Thailand

    thanks ray now i can able to see youtube videos

  11. Sid Roberts

    Great idea. Excellent method. Fantastic facial expressions.

  12. SEO

    HAHA that’s pretty cool, had to watch it a few times… A bit like a magic trick, well done.

  13. Design for MySpace

    Dustin the videos are too good
    awesome.

  14. Tomek

    Dusting I agree with others it’s really cool!

  15. Vicky - A Thailand tailor

    really cool man , where you get this idea.

  16. custom tailor

    any other way that i can watch your clip.in thailand you tube in banned

Leave a Reply

Phone Number:

If you're about to post code in your comment, please wrap your code with the tag-combo <pre><code>. Also please escape your html entities - otherwise they will be stripped out. I recommend using postable.

Get "JavaScript Design Patterns"

"As a web developer, you'll already know that JavaScript™ is a powerful language, allowing you to add an impressive array of dynamic functionality to otherwise static web sites. But there is more power waiting to be unlocked--JavaScript is capable of full object-oriented capabilities, and by applying OOP principles, best practices, and design patterns to your code, you can make it more powerful, more efficient, and easier to work with alone or as part of a team."

Buy JS Design Patterns from Amazon.com Buy JS Design Patterns from Apress

Flickr

Submit a Prototype

All content copyright © 2003 - 2007 under the Creative Commons License. Wanna know something? Just ask.

About | Archives | Blog Search

[x] close

Loading...

Submit a prototype

By checking this prototype I agree that I am not submitting false credentials, pornography, or a hate crime website. I also understand that by submitting my entry I may or may not be accepted, and if accepted, my entry may be taken down at any given time if I violate these terms.