• 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.

Signature Tagged With zoom effect on picture with shadow

This Article Has Been Shared 466 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Ultimate tips to start a WordPress blog

    When you think start a new wordpress blog , many small decisions will make very much difference about your blog’s future.

  • Making of WordPress theme : softwares and browsers addons

    List of the most useful tools needed for designing and coding a Wordpress theme.

  • Create your own custom WordPress mobile theme

    After reading this guide you can create your own custom wordpress theme with logo for major mobile phone browsers.

  • Usage of elegant and light typography to speed up your website

    Typography is an important part of web designing. We can use light typographical designs and CSS to spice up the website’s look.

  • MaxCDN versus Rackspace Cloud Files : Head to Head Test and Result

    MaxCDN versus Rackspace Cloud Files – NetDNA versus Akamai. Let us see the test and result in our own eyes to speed up our WordPress setup.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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

Search this website…

 

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Arduino : Independently Blink Multiple LED January 18, 2021
  • What is a Loosely Coupled System? January 17, 2021
  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021
  • What is Conway’s Law? January 14, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Zoom effect of Images and Pictures with realistic shadow using CSS," in The Customize Windows, June 15, 2011, January 18, 2021, https://thecustomizewindows.com/2011/06/zoom-effect-of-images-and-pictures-only-using-css/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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