{"id":5464,"date":"2020-03-07T16:37:12","date_gmt":"2020-03-07T11:07:12","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5464"},"modified":"2020-03-24T12:37:33","modified_gmt":"2020-03-24T07:07:33","slug":"jquery-effects","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/jquery-effects\/","title":{"rendered":"jQUERY EFFECTS"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">jQuery Effects<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Date: 07\/03\/2020<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Jquery has some of the in-built methods, that methods are used to add the effects for the Html element.<\/p>\n\n\n\n<h4 class=\"has-text-align-center wp-block-heading\"><strong>jQuery | hide()<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">    <strong> hide()<\/strong> is an inbuilt method in jquery, which is used to hide the selected element.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">syntax:<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$(selector).hide(duration, easing, call_function);<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n<a href=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\" target=\"_blank\" rel=\"noopener\">https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js<\/a>\n&lt;script&gt;\n$(document).ready(function(){\n  $(\"button\").click(function(){\n    $(\"p\").hide(500);\n  });\n});\n&lt;\/script&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n&lt;center&gt;\n&lt;button&gt;ok&lt;\/button&gt;\n\n&lt;p&gt;jquery effects and method test&lt;\/p&gt;\n\n&lt;\/center&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Before clicking the button:<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"270\" height=\"87\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-14.33.23.png\" alt=\"\" class=\"wp-image-5465\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>After clicking the button:<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"237\" height=\"100\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-14.35.57.png\" alt=\"\" class=\"wp-image-5466\"\/><\/figure>\n\n\n\n<h4 class=\"has-text-align-center wp-block-heading\"><strong>jQuery | <\/strong>toggle<strong>()<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">toggle() method is used to toggle between hide() and show<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Generic Highlighting\n$(selector).toggle(speed, easing, callback)\n\n<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n<a href=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\" target=\"_blank\" rel=\"noopener\">https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js<\/a>\n&lt;script&gt;\n$(document).ready(function(){\n  $(\"button\").click(function(){\n    $(\"p\").toggle(500);\n  });\n});\n&lt;\/script&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n&lt;center&gt;\n&lt;button&gt;toggle&lt;\/button&gt;\n\n&lt;p&gt;jquery effects and method test&lt;\/p&gt;\n\n&lt;\/center&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Before clicking the button:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"312\" height=\"95\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-14.53.08.png\" alt=\"\" class=\"wp-image-5468\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-14.53.08.png 312w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-14.53.08-300x91.png 300w\" sizes=\"(max-width: 312px) 100vw, 312px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>After clicking the button:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"211\" height=\"80\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-14.54.32.png\" alt=\"\" class=\"wp-image-5469\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>After clicking the button next time:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"407\" height=\"98\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-14.57.02.png\" alt=\"\" class=\"wp-image-5471\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-14.57.02.png 407w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-14.57.02-300x72.png 300w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/figure>\n\n\n\n<h4 class=\"has-text-align-center wp-block-heading\"><strong>jQuery | <\/strong>fade<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>fadeIn()<\/strong>  &#8211;  used to fade in a invisible element.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>fadeOut()<\/strong> &#8211; used to fade out a visible element<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>fadeTo()<\/strong> &#8211;  used to change the opacity of the selected element.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>fadeToogle()<\/strong> &#8211; used to toogle between fadeIn() and fadeOut().<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>fadeToggle():<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">syntax:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$(selector).fadeToggle(speed,callback);<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;   \n&lt;html&gt;\n   &lt;head&gt;\n      &lt;title&gt;  \n      &lt;\/title&gt;\n      &lt;style&gt; \n         #mydiv { \n         \tcolor: white;\n         margin-top: 50px; \n         padding-top: 50px; \n         height: 140px; \n         background: blue; \n         } \n      &lt;\/style&gt;\n      <a href=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.3.1\/jquery.min.js\" target=\"_blank\" rel=\"noopener\">https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.3.1\/jquery.min.js<\/a> \n   &lt;\/head&gt;\n   &lt;body&gt;\n      &lt;center&gt;\n      \t&lt;button id = \"fade\"&gt;Fade&lt;\/button&gt;  \n         &lt;div id= \"mydiv\"&gt;\n         \t&lt;p&gt;pheonixsolutions&lt;\/p&gt;\n         &lt;\/div&gt;      \n      &lt;script&gt;  \n         $(document).ready(function() { \n             $(\"#fade\").click(function() { \n                 $(\"#mydiv\").fadeToggle(); \n             }); \n         }); \n      &lt;\/script&gt; \n      &lt;\/center&gt; \n   &lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Before clicking the button:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"475\" height=\"340\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-16.31.59.png\" alt=\"\" class=\"wp-image-5472\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-16.31.59.png 475w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-16.31.59-300x215.png 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>After clicking the button:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"445\" height=\"182\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-16.32.44.png\" alt=\"\" class=\"wp-image-5473\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-16.32.44.png 445w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-16.32.44-300x123.png 300w\" sizes=\"(max-width: 445px) 100vw, 445px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Again clicking the button:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"475\" height=\"340\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-16.31.59-1.png\" alt=\"\" class=\"wp-image-5474\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-16.31.59-1.png 475w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot-2020-03-07-at-16.31.59-1-300x215.png 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Conclusion<\/strong>:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for using <a href=\"https:\/\/pheonixsolutions.com\/\">pheonixsolutions<\/a>.<br>If you like the blog share it with your friends.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jQuery Effects Date: 07\/03\/2020 Jquery has some of the in-built methods, that methods are used to add the effects for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[756,751,757,755],"class_list":["post-5464","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-hide","tag-jquery","tag-show","tag-toggle","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1q8","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5464"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5464\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}