안녕 우리는 사업부jQuery를 회전() 정도
$(function() {
$('.new-multiple').rotatable();
});
.new-multiple{
display:inline-block;
}
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/godswearhats/[email protected]/jquery.ui.rotatable.css">
<script src="https://cdn.jsdelivr.net/gh/godswearhats/[email protected]/jquery.ui.rotatable.min.js"></script>
<div class="new-multiple">
<img src="https://www.gravatar.com/avatar/322f808cb7a7e06d38ca4c8a441332fd?s=48&d=identicon&r=PG&f=1">
</div>
을 회전 JQuery와 rotatble 플러그인을 사용하지만 문제는 복사 옵션을 사용하여 DIV를 회전한다는 것이다. 하지만 학위를 사용하여 div를 회전해야합니다. 0 ~ 360도입니다. 당신이 https://github.com/godswearhats/jquery-ui-rotatable에서 문서를 검토 할 경우 우리는이
내가
.rotatable({
options: {
degrees: true
}
});
을 시도 달성 할 수 있지만,이
은 [이] 한 번 봐 (되세요 중지 이벤트에 정도 주어진 라디안 변환 https://www.w3schools.com/tags/ trypt.asp? filename = tryhtml5_canvas_rotate) – matt
@matt 캔버스 회전이 jQuery UI 플러그인 및 CSS와 어떻게 관련이 있는지 잘 모르겠습니다. – Twisty