I am trying to make a button that when clicked displays an animation were two triangles slide in, but when I try to use the .toggle('slide') command it does something that resembles .show() or .hide(), also it takes 2 clicks to do everything and I want it to work in 1. I put my JQuery below but my full code is in this CodePen or this JSfiddle I recommend looking at the CodePen one because the JSfiddle is having problems for me.
$(document).ready(function(){
$('#buttondiv').click(function(){
$('#triangle').toggle('slide', 'slow');
$('#triangle2').toggle('slide', 'slow');
})
});