html - css transition-delay on pointer-events not working -


i want links recover ability of being clicked after there container has been hovered.

in following example apply delay on visibility of links when parent div hovered.

but can't apply same philosophy pointer-events attribute.

http://jsfiddle.net/coolcatdev/trlf02e2/4/

html:

<div class="a">     <a href="#">some link</a><br>     <a href="#">some link</a><br>     <a href="#">some link</a><br>     <a href="#">some link</a><br>     <a href="#">some link</a> </div>  <div class="b">     <a href="https://google.com">some link</a><br>     <a href="https://google.com">some link</a><br>     <a href="https://google.com">some link</a><br>     <a href="https://google.com">some link</a><br>     <a href="https://google.com">some link</a> </div> 

css:

.a, .b{     border:2px solid grey; }  .a a{     visibility:hidden; }  .a:hover a{     visibility:visible;     transition-delay:1s; }  .b a{     pointer-events:none;     cursor:default; }  .b:hover a{     pointer-events:auto;     cursor:pointer;     color:red;     transition-delay:2s ; } 

try adding them selector , not pseudo selector. (a instead of a:hover.)

example of transitions on w3 schools


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -