I am trying to change the .css property so that the css transitions will animate on click. For some reason this is not working. This action needs to toggle.
$("button.subnav-toggle").click(function(){
$(".subnav").toggle(
function() {
$(".subnav").css({'top':'0'});
alert("something");
}, function() {
$(".subnav").css({'top':'-150px'});
})
});