Topic: Animation on hover

demzl25 priority asked 6 years ago


Hi,  i would like to add animation on hover and i have found this java script that triggers animation on one event  but i would like that every time i hover on element animation triggers! What is missing in this java script or i can accomplish this with css? <script> $(document).ready(function(){ $('.logo').hover(function(){ $(this).addClass('animated pulse') }); }); </script>

Marta Wierzbicka staff answered 6 years ago


Hi, change .addClass to .toggleClass and it will work. Best, Marta

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags