Easiest way would be to use JavaScript to add a class to the second target whenever the first one is clicked.
var btn1 = document.getElementById('btnq1');
var btn2 = document.getElementById('btnq2a');
btn1.addEventListener('click', makeActive);
function makeActive(){
var className = ' ' + btn2.className + ' ';
// from SO Question #14615712
if ( ~className.indexOf(' active ') ) {
btn2.className = className.replace(' active ', ' ');
} else {
btn2.className += ' active ';
}
}
Or jQuery if you prefer:
$('#btnq1').on('click', function () {
$('#btnq2a').toggleClass('active');
});
Then, adjust your CSS selector a bit.
#btnq2a.active {
animation-name:q2show;
animation-iteration-count:1;
animation-delay:4s;
animation-duration:4s;
animation-fill-mode:forwards;
}
Here's an updated FIDDLE