jQuery | Change CSS on click

$('#btn').on('click', function(){ $('.someElement').css({ '-webkit-transform': 'translate3d(0px, -100%, 0px)', '-moz-transform': 'translate3d(0px, -100%, 0px)', '-o-transform': 'translate3d(0px, -100%, 0px)', '-ms-transform': 'translate3d(0px, -100%, 0px)', 'transform': 'translate3d(0px, -100%, 0px)', '-webkit-transition': 'all 1000ms ease', '-ms-transition': 'all 1000ms ease', '-moz-transition': 'all 1000ms ease', '-o-transition': 'all 1000ms ease', 'transition': 'all 1000ms ease' }); });

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.