mirror of
https://github.com/actix/examples
synced 2024-11-24 23:02:59 +01:00
8 lines
207 B
JavaScript
8 lines
207 B
JavaScript
jQuery(document).ready(function () {
|
|
let rotation = 0;
|
|
jQuery("img").click(function () {
|
|
rotation += 360;
|
|
jQuery("img").css({'transform': 'rotate(' + rotation + 'deg)'});
|
|
});
|
|
});
|