Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <script type="text/javascript">
  2. $(document).ready(function(){
  3. $('#topnav li')
  4. .mouseover(function(){
  5. $(this).stop().animate(
  6. {'background-position-y': '28px'},
  7. {opacity: 1},
  8. {duration:100})
  9. })
  10. .mouseout(function(){
  11. $(this).stop().animate(
  12. {'background-position-y': '38px'},
  13. {opacity: 0.3},
  14. {duration:100})
  15. })
  16. });
  17. </script>
  18.  
  19. <script type="text/javascript">
  20. $(document).ready(function(){
  21. $('#topnav li')
  22. .mouseover(function(){
  23. $(this).stop(true).animate(
  24. {'background-position-y': '28px', opacity: 1},
  25. {duration:100})
  26. });
  27. .mouseout(function(){
  28. $(this).stop(true).animate(
  29. {'background-position-y': '38px', opacity: 0.3},
  30. {duration:100})
  31. });
  32. });
  33. </script>
  34.  
  35. $(this).stop().animate({
  36. 'background-position-y': '28px',
  37. 'opacity': 1
  38. }, 100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement