text fade in out

by Sreeraj Saseendran

HTML

<script src="https://code.jquery.com/jquery-3.1.1.js"></script>

<div class="image">
<a><img src="http://www.planwallpaper.com/static/images/orangutan_1600x1000_279157.jpg" width="200"/>
<div class="texte">
fvdgfdg
</div></a>
</div>

JavaScript

if(!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)) {
  $('.image a img').mouseover(function(){
  $(this).next().fadeIn();
  });

  $('.texte').mouseout(function(){
  $(this).fadeOut();
  });
}