So I would like to animated this pseudo elements in a button by a jQuery but it is a pseudo element animation that triggered when hover. Here is the
DEMO.
And this is my code that wants to triggered the pseudo element animation but nothings happen after clicking it.
$('button').click(function() {
$('.borders').toggleClass('s');
})
Does anyone have idea please don’t vote me down. Thank you so much.