-
1. Re: how to make a div "transparent" to events ?
robboerman Jul 19, 2013 1:12 PM (in response to AMULI)i alwase use the jqeuryui plugin for that kind of stuff http://jqueryui.com/accordion/#default
its hard to use jqeury with so many symbols but try to use this code for that
$(this).parent().css({
"opacity": "1"
});
//( change the parent of the button to visible ) //
sym.$(".blockclass").css({
"opacity": "0"
});
//( change all with div class .blockclass to invisible ) //
-
2. Re: how to make a div "transparent" to events ?
AMULI Jul 19, 2013 1:36 PM (in response to robboerman)Hi robboeradobe,
This is not an accordion (I have already used the jQuery UI accordion) : it's not visible on the screen shots, but the third block expands upward !
Thank you for the opacity trail. I could not imagine it had to do with events and I thought it as a purely visual property. I will try it.
Gil
-
3. Re: how to make a div "transparent" to events ?
AMULI Jul 20, 2013 1:49 AM (in response to robboerman)I was not explicit enough while using the expression "transparent". In the following figure the doted parts correspond to the additional area of each symbol when it is in its expanded state.
The problem is : button 2 can't be hovered over, nor clicked, because the expanded part of block 1 prevents it from receiving the events.
Setting the opacity to 0 is not a solution, as block 1 would become invisible.
How to prevent block 1 from capturing the events ?
Gil
-
4. Re: how to make a div "transparent" to events ?
robboerman Jul 20, 2013 3:44 AM (in response to AMULI)hi Gil, i took a look at your file and fixed it using clipping.
https://app.box.com/s/8kqc3resxtmj7h47iakx for the fixed file
now all buttons are clickable and removes the clipping after button is clicked and adds it to it again when minus is clicked
you could also probably fix it with the css3 z-index but that is a bit more complicated to do right.
I hope this helped you
-
5. Re: how to make a div "transparent" to events ?
AMULI Jul 20, 2013 10:44 AM (in response to robboerman)Hi robboeradobe,
i took a look at your file and fixed it using clipping.
Thank you. You broke the deadlock
you could also probably fix it with the css3 z-index but that is a bit more complicated to do right.
Yes. The only idea I had was to reassign the three z-index values to modify the stacking order depending on the vertical position of the mouse cursor, which is indeed complicated
Nevertheless, I must refine your solution with z-index to get the block closing transition (as is it jumps from expanded to closed state). Thank you again.
Gil
-
6. Re: how to make a div "transparent" to events ?
robboerman Jul 20, 2013 11:37 AM (in response to AMULI)no problem, it was an honor to help you




