JS 예제를 다운로드했으며 창로드로 시작할 수 있는지 질문하고 싶습니다.페이지가로드 될 때 javascript 기능을 실행하십시오.
<script>
window.onload = function() {
$.fn.rotate.serialize();
var gear1 = document.getElementById('gear1');
var gear2 = document.getElementById('gear2');
$('#centerpiece').on('mouseenter',function() {
if(!gear1.isRotating && !gear2.isRotating) {
gear1.isRotating = true;
gear2.isRotating = true;
$(gear1).rotate(360,{speed:140},function() {
gear1.isRotating = true;
$(this).rotate('reset');
});
$(gear2).rotate(360,{speed:110},function() {
gear2.isRotating = true;
$(this).rotate('reset');
});
}
});
};
</script>
* 창로드로 시작할 가능성이있는 경우 * 의미 하시겠습니까? – Raptor