Vote count:
0
The goal is to get the animation to play on click, and then reverse itself on a second click. I'm not sure as to how to use the Javascript to set this up (just now learning it, you see.). I had the idea to add a class using jQuery, below, but it wasn't working. I tried to "cheat" using the :target selector, but that's not really functional. Any ideas?
$(document).ready(function (){
$(function () {
$("#button").click(function () {
$("#button").toggleClass(".active");
});
});
});
asked 10 secs ago
Aucun commentaire:
Enregistrer un commentaire