{"id":82,"date":"2023-08-25T17:40:58","date_gmt":"2023-08-25T17:40:58","guid":{"rendered":"\/\/api.jqueryui.com\/1.12\/?p=82"},"modified":"2023-08-25T17:40:58","modified_gmt":"2023-08-25T17:40:58","slug":"jQuery.effects.scaledDimensions","status":"publish","type":"post","link":"https:\/\/api.jqueryui.com\/1.12\/jQuery.effects.scaledDimensions\/","title":{"rendered":"jQuery.effects.scaledDimensions()"},"content":{"rendered":"<article id=\"jQuery-effects-scaledDimensions1\" class=\"entry method\"><h2 class=\"section-title\">\n<span class=\"name\">jQuery.effects.scaledDimensions( element, percent [, direction ] )<\/span><span class=\"returns\">Returns: <a href=\"http:\/\/api.jquery.com\/Types\/#Object\">Object<\/a><\/span><span class=\"version-details\">version added: 1.12<\/span>\n<\/h2>\n<div class=\"entry-wrapper\">\n<p class=\"desc\"><strong>Description: <\/strong>Scales the dimensions of an element.<\/p>\n<ul class=\"signatures\"><li class=\"signature\">\n<h4 class=\"name\"><a id=\"jQuery-effects-scaledDimensions-element-percent-direction\" href=\"#jQuery-effects-scaledDimensions-element-percent-direction\"><span class=\"icon-link\"><\/span>jQuery.effects.scaledDimensions( element, percent [, direction ] )<\/a><\/h4>\n<ul>\n<li id=\"jQuery-effects-scaledDimensions-element-percent-direction-element\">\n<div><strong>element<\/strong><\/div>\n<div>Type: <a href=\"http:\/\/api.jquery.com\/Types\/#jQuery\">jQuery<\/a>\n<\/div>\n<div>The element to scale.<\/div>\n<\/li>\n<li id=\"jQuery-effects-scaledDimensions-element-percent-direction-percent\">\n<div><strong>percent<\/strong><\/div>\n<div>Type: <a href=\"http:\/\/api.jquery.com\/Types\/#Number\">Number<\/a>\n<\/div>\n<div>The percentage of the original size that the element&apos;s dimensions should be scaled to.<\/div>\n<\/li>\n<li id=\"jQuery-effects-scaledDimensions-element-percent-direction-direction\">\n<div><strong>direction<\/strong><\/div>\n<div>Type: <a href=\"http:\/\/api.jquery.com\/Types\/#String\">String<\/a>\n<\/div>\n<div>Which direction to scale the element&apos;s dimensions; either <code>&quot;horizontal&quot;<\/code> or <code>&quot;vertical&quot;<\/code>. If <code>direction<\/code> is omitted, both dimensions will be scaled.<\/div>\n<\/li>\n<\/ul>\n<\/li><\/ul>\n<div class=\"longdesc\" id=\"entry-longdesc\">\n\t\t\t<p>This method scales the dimensions of an element, returning an object containing <code>height<\/code>, <code>width<\/code>, <code>outerHeight<\/code>, and <code>outerWidth<\/code> properties. The element is not actually modified.<\/p>\n\t\t<\/div>\n<\/div><\/article>","protected":false},"excerpt":{"rendered":"<p>Scales the dimensions of an element.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,10],"tags":[],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-effects","category-effects-core"],"_links":{"self":[{"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":1,"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/posts\/82\/revisions\/83"}],"wp:attachment":[{"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/api.jqueryui.com\/1.12\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}