• 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 850 Times!

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

  • 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

Get new posts by email:

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 (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

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

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, February 1, 2023, https://thecustomizewindows.com/2011/06/zoom-effect-of-images-and-pictures-only-using-css/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

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

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT