Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS3 transition hover over nested divs
    primarykey
    data
    text
    <p>I'm having some problem with ccs3 hover transition over a nested div element. It seems that when I <strong>MOUSE_OVER</strong> img_cover it plays the animation but when move the mouse over anything in the img_one container it starts playing the <strong>MOUSE_OUT</strong> animation even though i'm still in still in the parent div. This is an undesired effect, I only want to play <strong>MOUSE_OUT</strong> when i move out of the parent div (img_one container). What am I doing wrong?</p> <p>I created a Jsfiddle for a demo.</p> <p><a href="http://jsfiddle.net/6wrdD/16/" rel="nofollow">http://jsfiddle.net/6wrdD/16/</a></p> <pre><code>--------------------------- | img_one container | | ____________________ | | |kool_mask | | | |------------------| | | |text | | | |button | | | |__________________| | | | | ____________________ | | |img_cover | | | |__________________| | --------------------------- </code></pre> <p>CODE: [HTML]</p> <pre><code>&lt;div class="image_one"&gt; &lt;div class="kool_mask"&gt; &lt;h5&gt; Heading &lt;/h5&gt; &lt;div class="p2"&gt; Text &lt;/div&gt; &lt;a href="#"&gt;&lt;input type="button" id="kool_buttons" value="launch"&gt; &lt;/a&gt; &lt;/div&gt; &lt;div id="imgcover"&gt; &lt;img src="http://blogs.lib.utexas.edu/texlibris/files/HAL-9000.jpg" alt="" /&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>CODE: [CSS]</p> <pre><code>.kool_mask { background: rgba(66, 72, 71, 0.7); position:relative; width:288px; height:250px; top:0; left:0; } .image_one { position:relative; width:288px; height:250px; } .kool_mask a { color:#ffffff; } #imgcover { top:0; left:0; position:absolute; width:288px; height:150px; -webkit-opacity: 1; -moz-opacity: 1; opacity: 1; -webkit-transition: all 1s ease-out; -moz-transition: all 1s ease-out; -ms-transition: all 1s ease-out; -o-transition: all 1s ease-out; transition: all 1s ease-out; } #imgcover:hover { -webkit-opacity: 0; -moz-opacity: 0; opacity: 0; /* Firefox */ -moz-transform: scale(0) rotate(320deg) translate(50px); /* WebKit */ -webkit-transform: scale(0) rotate(320deg) translate(50px); /* Opera */ -o-transform: scale(0) rotate(320deg) translate(50px); /* Standard */ transform: scale(0) rotate(320deg) translate(50px); } h5 { font-size: 16px; color: #FFFF00; text-align:center; background-color: #000000; margin-right: 470px; margin-left: 100px; padding-top: 2px; padding-left: 4px; font-family: Georgia, "Times New Roman", Times, serif; font-weight: normal; } .kool_buttons { text-align:center; width:50px; height:50px; border:1px solid black: background: rgba(66, 72, 71, 0.7); }​ ​ </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload