Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8209867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:52:41+00:00 2026-06-07T09:52:41+00:00

I am developing a magnifying glass and I was hoping I could get some

  • 0

I am developing a magnifying glass and I was hoping I could get some help figuring out how I am going to do a step.

What I am doing is I have a div with a higher z-index than the content. It is moveable and draggable. It also has a transparent background so one can see the content (images & text) behind/underneath it that has a lesser z-index.

Now the part that I need help with is this:

I want to figure out exactly what content is behind the div (let’s give it an ID of #glass).

Then my plan was to append a <span> before and a closing one after and style it with CSS3 scale transforms to increase the size so it acts as if it is magnified.
If you have a better idea on how to ‘magnify’ the content please share it.

So what I am looking to do in a spot of pseudo-code is:

  1. Get position of #glass.
  2. Get content behind #glass.
  3. Store that in a variable or give it a class or something to refer it to.
  4. Append a span before and after.
  5. Style it with scale-transform.
  6. Undo and reset the above when #glass moves.

I would really appreciate any and all help with any of these steps, but especially number 2 and 3, As I have no idea on how to do those.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:52:43+00:00Added an answer on June 7, 2026 at 9:52 am

    You can listen for the mousemove event on every element in the page. each time the event fires you update a variable with the latest node being hovered over.

    So as you are dragging around the glass, the mousemove event should be getting fired on the elements behind the glass (since you are hovering over them). And you can then use your latest node variable to get the element behind it.

    Here a is Jsfiddle demonstrating how this could be done:
    http://jsfiddle.net/wWVuy/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Developing a project of mine I realize I have a need for some level
Developing for Android 2.3, I have a question regarding layouts. I use a vertival
iam developing one application.In that i need to get the music files from the
developing iphone app, I have used a UIImageview and i have set an image
Developing for iPhone, I have a collection of points that I need to make
Developing an app where all tabular data is returned as an object. Some cells
Developing with Google Maps v3. For some sort of reason, my custom marker icon
Developing a network application, I have a Connection class that manages sending and receiving
Developing an MVC application, i now need to have test other browser versions. Installed
Developing ios app. I have an object class Product.h and .m respectively along with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.