V
V
vikholodov2018-03-22 18:58:38
JavaScript
vikholodov, 2018-03-22 18:58:38

How to solve a jamb with a hover effect?

Hey!
I've hidden the slider controls by default and show them on hover:

$('.product-slider').hover(function(e){
    $('.lSGallery, .lSAction a' ).slideToggle('fast');
  });

But ... if the cursor is hovered over the slider when the page is reloaded, then I get the opposite effect.
What can be organized to prevent a bug?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Froggyweb, 2018-03-22
@Froggyweb

Rewrite to css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question