Solved

Text over a img in a div with an associated animation in JS JQuery

Posted on 2011-09-05
1
221 Views
Last Modified: 2012-05-12
I have a div with an associated animation. Clicks on the img triggers the animation. I put a text description in a nested div, over the img. The problem is that now clicking on the text the animation dont work anymore.
0
Comment
Question by:ec2011
1 Comment
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 36486339
So, the image is inside the parent div and is a sibling to the nested div. And you have given the click event to image, which triggers the animation to parent div. And you want the animation to be triggered when you click on its sibling div also???

<div id="parentDiv"> \\on which you have associated animation
  <img src/> \\on click triggers animation
  <div id="nestedSiblingDiv">SomeText</div>
<div>

Is that correct?

You just have to associate animation to click of parent div rather than image
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now