Good day!

I have a block that is hidden by 80% and when hovering, 2 scripts are triggered - the block "leaves" on the side and the background of the page changes. Question: why, when I move the cursor to the area corresponding to the open block (it is hidden), the background change script works for me? The problem is only in Safari & Chrome browsers, in the rest everything works fine.

  • What do you mean by open block? What is the problem? Does one script or both work? - LordySL
  • By the way, why did you share these two scripts? Make one. - SilverIce
  • block width is 500, it is 80% hidden, i.e. when I impose on the part of the block that is visible, it expands to 100% and 2 script works. the problem is that when I move the cursor next to the block, on an area 500 wide, 2 script still works - woland
  • @woland given your comment that relative positioning is necessary, read in detail about this property and how the structure perceives this positioning! And then come back with a question and at least a piece of code! - Palmervan

1 answer 1

Just a couple of hours ago, I already gave one of my examples . Look, maybe you will do. By the way, about two scripts - two actions are implemented there under one event. Maybe this is useful.

PS In general, @Palmervan told you correctly that it is advisable to show a piece of your code.