SomethingThatDoesntSuck/Src/assets/js/bs-animation.js

5 lines
295 B
JavaScript
Raw Permalink Normal View History

2020-07-06 17:12:13 +00:00
$(document).ready(function(){
$('[data-bs-hover-animate]')
.mouseenter( function(){ var elem = $(this); elem.addClass('animated ' + elem.attr('data-bs-hover-animate')) })
.mouseleave( function(){ var elem = $(this); elem.removeClass('animated ' + elem.attr('data-bs-hover-animate')) });
});