animation.js 957 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. $(document).ready(function(){
  2. /* jQuery Animation */
  3. $(function(){
  4. $('.animation-toggle').click(function(){
  5. var animationEFFECT = $(this).attr('data-animation');
  6. var animationTARGET = $(this).attr('data-animation-target');
  7. $(animationTARGET).addClass('animated');
  8. $(animationTARGET).addClass(animationEFFECT);
  9. $(animationTARGET).removeClass('hide');
  10. var wait = window.setTimeout( function(){
  11. $(animationTARGET).removeClass('animated');
  12. $(animationTARGET).removeClass(animationEFFECT);
  13. $(animationTARGET).addClass('hide')},
  14. 1300
  15. );
  16. });
  17. });
  18. /* Photo Gallery hover */
  19. $('.thumbnail-box').hover(function(){
  20. $('.thumbnail-overlay', this).fadeIn('fast');
  21. $('.thumbnail-content', this).slideDown('fast');
  22. },
  23. function(){
  24. $('.thumbnail-overlay', this).fadeOut('fast');
  25. $('.thumbnail-content', this).slideUp('fast');
  26. });
  27. });