Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8955005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:26:41+00:00 2026-06-15T14:26:41+00:00

$(button).click(function(){ if (Modernizr.zoom()) $(‘body’).animate({ zoom: ‘200%’; }, 1000); else $(‘body’).alternative(); }); As you can

  • 0
$(button).click(function(){
    if (Modernizr.zoom()) $('body').animate({ zoom: '200%'; }, 1000);
    else $('body').alternative();
});

As you can see above … I want to zoom in into my page on click.

By the way: Is it good to use ‘zoom’ (css)? I’m not sure because I did not find any good description for ‘zoom’ (css). Or is it better to use ‘scale’ (css) to animate?

Main Question: Is there any way to detect if the browser supports this css-‘zoom’ (or whatever) feature?
I’m using Modernizr, but within Modernizr there is nothing to detect if ‘zoom’ is available.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:26:43+00:00Added an answer on June 15, 2026 at 2:26 pm

    OK. I found out, that using the css zoom-property is not good, because it only works in IE and some newer versions of “real” browsers. AND if i have a layout with percent-values it doesn’t zoom except i also change the value of the width or height, which is not nice.

    BUT it does work with the css3 scale-property! and therefore i found the Modernizr.csstransforms() feature detection (for js)!

    So … that’s it!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$(#button).click(function(){ if($(#window).css('top') == '0%'){ $(#window).stop().animate({top:'-100%'},1000); } else { $(#window).stop().animate({top:'0%'},1000); } }); it works perfectly
Typical jQuery over-use: $('button').click(function() { alert('Button clicked: ' + $(this).attr('id')); }); Which can be
Here's my jQuery snippet $(document).ready(function() { $(#button).click(function(e) { $(body).append('Source:CIA World Factbook'); }); }); I
can we use more than one click event in the Jquery as $(document).ready(function(){ $('#button').click(function(){
HTML: <html> <body> <textarea>Original Text</textarea> <button>Replace</button> </body> </html> jQuery: $(function() { $('button').click(function () {
In jQuery we can do like... $('.button').click( function() { $(this).hide(); } ); But we
http://jsfiddle.net/VTD9P/2/ $(button).click(function(){ $(body).append('<div class=vidminclose>X</div>'); }); $(.vidminclose).click(function(){ $(this).remove(); }); ​ ​why is it when i
$(#btn).button().click(function() { $(#textinput).css('color',function(clr) { if ($(#textinput).css('color') == '#000000') return '#ff0000'; else return '#000000'; });
I can't repeat animation with the following example (using jQuery Transit ) $(#rotateDiv2).button().click(function() {
$('.button').click(function() { $('#small-form').animate({ width: ['toggle', 'swing'], height: ['toggle', 'swing'], opacity: 'toggle' }, 5000, 'linear');

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.