{"id":4898,"date":"2019-06-19T11:27:15","date_gmt":"2019-06-19T05:57:15","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=4898"},"modified":"2019-06-21T15:07:32","modified_gmt":"2019-06-21T09:37:32","slug":"background-image-zoom-with-transition","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/background-image-zoom-with-transition\/","title":{"rendered":"BACKGROUND IMAGE ZOOM WITH TRANSITION"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">BACKGROUND IMAGE ZOOM WITH TRANSITION<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Date: 19\/06\/2019<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">INTRODUCTION<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">                      In this tutorial, I going to explain about zoom the background image with the transition property<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">                       For that i have use transition property for zoom the image.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">                        The following code will used to zoom the particular image.<\/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;style type=\"text\/css\"&gt;\n\t.image-box{\n  width:300px;\n  overflow:hidden;\n}\n.image {\n\twidth:300px;\n  height:200px;\n\tbackground: url(\"http:\/\/a1128.g.akamai.net\/7\/1128\/497\/0001\/origin-d5.scene7.com\/is\/image\/ProvideCommerce\/green%20flower%201_blog131210\");\n\tbackground-position:center;\n \n} \n.image:hover {  \n  -webkit-transform: scale(1.2);\n  -moz-transform: scale(1.2);\n  -o-transform: scale(1.2);\n  -ms-transform: scale(1.2); \n  transform: scale(1.2);\n} \n&lt;\/style&gt;\n\n\n&lt;center&gt;<div class=\"image-box\">\n  <div class=\"image\"><\/div>\n&lt;\/div&gt;&lt;\/center&gt;  <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">                          The above code i have use image class to aligning the image size.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">                          Image hover for zoom the image.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">INPUT IMAGE:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">     The image will appear like following before add the transition.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"310\" height=\"211\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/OLD.png\" alt=\"\" class=\"wp-image-4902\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/OLD.png 310w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/OLD-300x204.png 300w\" sizes=\"(max-width: 310px) 100vw, 310px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">OUTPUT IMAGE:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">     The image will appear like following after the zooming.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"312\" height=\"215\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/ZOOM.png\" alt=\"\" class=\"wp-image-4903\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/ZOOM.png 312w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/ZOOM-300x207.png 300w\" sizes=\"(max-width: 312px) 100vw, 312px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">               Thanks for using&nbsp;<a href=\"https:\/\/pheonixsolutions.com\/\">pheonix solutions<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">               You find this tutorial helpful? Share with your friends to keep it alive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BACKGROUND IMAGE ZOOM WITH TRANSITION Date: 19\/06\/2019 INTRODUCTION In this tutorial, I going to explain about zoom the background image [&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":[496,685,687,686],"class_list":["post-4898","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-css","tag-image","tag-transition","tag-zoom","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1h0","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4898","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=4898"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4898\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=4898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=4898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=4898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}