javascript - Is there a way to activate a transition on click event and not on hover for example? -
i'm struggling in finding non js solution problem. there way of activate css transition on click , not on :hover or others?
one possibility: can add together class holds transition on click. illustration using jquery - can accomplish programmatically using "raw" javascript only:
html container should animated
<div id="transtion"></div>
javascript
// bind click event element - can other element triggers … $('#transition').click(function() { // add together classname thats defined transition in css $(this).addclass('translate_left'); });
javascript html css css3
No comments:
Post a Comment