0

Hi I would like to use a fade in effect on this jquery and have it appear on touch devices on click.

  $('#one').hover(function() {
    $('#one_text').css('background-color', '#fdb913');
  }, function() {
    // on mouseout, reset the background colour
    $('#one_text').css('background-color', '');
  });
brightmist.co.uk
  • 531
  • 5
  • 18
  • 47

1 Answers1

0

You can try this

$('#one').hover(function() {
    $('#one_text').css('background-color', '#fdb913').fadeOut( 100 );
  }, function() {
    // on mouseout, reset the background colour
    $('#one_text').css('background-color', '').fadeIn( 500 );
  });

See Plunker https://plnkr.co/edit/tfYEihJ8Z2SfXP1ShAKL?p=preview

Harsh Chaurasia
  • 109
  • 1
  • 6