Reputation: 22810
so heres the animation
into
and this one
how can they do that? 1. re-size animation 2. stack and animate.
just CSS3 ? any example?
Thanks
Adam Ramadhan
Upvotes: 1
Views: 886
Reputation: 12226
To answer your question:
To resize and make image animate ( zoom in effect ) you should use something like :
ul#pics li:hover {
-moz-transform: scale(1.1) rotate(0deg);
-webkit-transform: scale(1.1) rotate(0deg);
-o-transform: scale(1.1) rotate(0deg);
-ms-transform: scale(1.1) rotate(0deg);
transform: scale(1.1) rotate(0deg);
}
For stack and animate, you should use CSS3 and jQuery.
Upvotes: 4
Reputation: 41640
On my machine using Chrome, I see a CSS3 -webkit-transform
. Since that's the only transform
they're using, it must be detecting that my browser is webkit and choosing the right way to transform. They probably have various other techniques for other browsers.
However, there's no jQuery fallback, as the page doesn't use jQuery; there's probably a different JavaScript fallback developed by Google though.
Upvotes: 2