• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Zoom effect of Images and Pictures with realistic shadow using CSS

By Abhishek Ghosh June 15, 2011 9:55 pm Updated on June 15, 2011

Zoom effect of Images and Pictures with realistic shadow using CSS

Advertisement

There are lot of WordPress plugins to create image Zoom effect. Most of them uses jQuerry and thus increases the page loading time. Zoom effect of Images and Pictures can be created by only using a CSS trick without and jQuerry and thus less page loading time. Also, the Free WordPress Blogs can not Install Plugins (those who have not upgraded), so this trick of CSS Zoom effect of Images will be helpful for Free WordPress blog users as well.

 

Prerequisites for creating Zoom effect of Images and Pictures

 

To create image zoom effect using CSS, you will need:

  • Two sizes (big and small) of the same photo / image for Zoom effect
  • Any Text Editor. We recommend using gedit for easy usage.

Here are our two sizes of photos for creating the zoom effect:   Thumbnail for creating Zoom effect: Zoom effect of Images and Pictures only using CSS - thumbnail This is the bigger photo:   Zoom effect of Images and Pictures only using CSS

Advertisement

---

The required HTML code for creating the zoom effect:

 

Firstly, go to Media > library in your WordPress blog and copy the full url after uploading the images. The code for the above example is (scroll down first, then hover over the image):

 

<ul>

<li>

<a href=”https://thecustomizewindows.com/“>

<img src=”https://thecustomizewindows.com/wp-content/uploads/2011/06/Zoom-effect-of-Images-and-Pictures-only-using-CSS-thumbnail.jpg” alt=”Zoom effect of Images and Pictures only using CSS-thumbnail“> <img src=”https://thecustomizewindows.com/wp-content/uploads/2011/06/Zoom-effect-of-Images-and-Pictures-only-using-CSS.jpg” alt=”Zoom effect of Images and Pictures only using CSS“>

</a>

</li>

</ul>

 

Change the target URL (href), both img src URL and the alt tags as per your need.

CSS code for creating the zoom effect along with box shadow effect:

 

To get the HTML code for the zoom effect working, we need to add this bits of CSS code to the Theme’s style.css file. It will create the zoom effect along with shadow of the image:

.photo
{
margin: 0;
padding: 0;
}

.photo img
{
border: none;
}

.photo li
{
list-style: none;
position: relative;
}
a .zoom
{
display: none;
}
a:hover .zoom
{
display: block;
position: absolute;
top: 0;
left: 0;
box-shadow:rgba(0,0,0,.5) 0 3px 6px;
-webkit-box-shadow:rgba(0,0,0,.5) 0 3px 6px;
-moz-box-shadow:rgba(0,0,0,.5) 0 3px 6px;
}

Working example of this tutorial on creating Zoom effect of Images with realistic shadow using only CSS :

 

 

  • Zoom effect of Images and Pictures only using CSS-thumbnail Zoom effect of Images and Pictures only using CSS

 

 

 

We have given a bit deep shadow along with zoom effect.

SignatureTagged With zoom effect on picture with shadow
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Zoom effect of Images and Pictures with realistic shadow using CSS

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Send HTTP POST Request to a Secure Webpage with PHP

    You can send HTTP Post Request to any secured URL with a simple PHP script. Often this kind of script is helpful to build various buttons. In our different tutorials on IoT projects with ESP32, like in the guide Controlling AC Powered Appliances With ESP32 and IBM Watson IoT, we need to send a pair […]

  • Editing Blogger’s theme template to have some features like WordPress

    We will discuss about editing the one page template (that is xml file) of Blogger to get your SEO optimized Blogger template which will have most effective SEO features.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. Avataribnu ismadi says

    September 10, 2011 at 11:27 pm

    nice info brother.
    but how to create zoom effect of new windows?

  2. AbhishekAbhishek says

    September 10, 2011 at 11:38 pm

    Thanks bro.
    New window? I am sorry I can not understand what you mean. Can you explain a bit ?

  3. Avataribnu ismadi says

    September 11, 2011 at 12:08 am

    example : such as http://randomous.com/floatbox/demo click on picture then you see the effects.
    thanks

  4. AbhishekAbhishek says

    September 11, 2011 at 5:16 am

    Oh! That one? That is called ” light box “. That is not possible with only CSS. Ajax or javascript is need. There are many nice free WordPress plugins are available. You can try them.

  5. Avataribnu ismadi says

    September 11, 2011 at 11:54 am

    a’m don’t like plugin. how to create zoom effect on picture without plugin? please help me

  6. AbhishekAbhishek says

    September 11, 2011 at 2:07 pm

    OK :)

    You will need a Javascript or Ajax. Kindly wait for 1-2 days, I will post the method in the way you want.

  7. AbhishekAbhishek says

    September 11, 2011 at 4:03 pm

    I have found free Open Source Javascript based Zoom Pop Up effect here : http://gettopup.com/ ; hope it will help you.

  8. Avataribnu ismadi says

    September 12, 2011 at 12:21 am

    thanks you very very very much brother.
    good lucky in your job.

  9. AbhishekAbhishek says

    September 12, 2011 at 5:43 am

    You are welcome Ibnu bro. Thank you very much for the kind words.

  10. AvatarTushar Sharma says

    October 19, 2011 at 5:00 pm

    Excellent CSS Sprite Tutorial.

  11. AbhishekAbhishek says

    October 19, 2011 at 6:23 pm

    Thank you for your consent.

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

vpsdime

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud-Powered Play: How Streaming Tech is Reshaping Online GamesSeptember 3, 2025
  • How to Use Transcribed Texts for MarketingAugust 14, 2025
  • nRF7002 DK vs ESP32 – A Technical Comparison for Wireless IoT DesignJune 18, 2025
  • Principles of Non-Invasive Blood Glucose Measurement By Near Infrared (NIR)June 11, 2025
  • Continuous Non-Invasive Blood Glucose Measurements: Present Situation (May 2025)May 23, 2025
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2026 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy