$(button).click(function(){
if (Modernizr.zoom()) $('body').animate({ zoom: '200%'; }, 1000);
else $('body').alternative();
});
As you can see above ... I want to increase my page by click.
By the way: is it good to use 'zoom' (css)? I am not sure because I did not find a good description for 'zoom' (css). Or is it better to use scale (css) for animation?
The main question is: is there a way to determine if the browser supports this css -zoom function (or something else)? I use Modernizr, but there is nothing in Modernizr to detect if zoom is available.
source
share