我想做一个类似于
https://pharrellwilliams.com/
有了自由滚动,必须能够导航到左,右,下和上,我不知道它是否是用画布完成的
我能调查的是它占据了图书馆
https://www.pixijs.com
也
https://jqueryui.com/
在jquery iu页面上有一个示例:
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<style>
#draggable { width: 150px; height: 150px; padding: 0.5em; }
</style>
<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>
<script>
$( function() {
$( "#draggable" ).draggable();
} );
</script>
</head>
<body>
<div id="draggable" class="ui-widget-content">
<p>Drag me around</p>
</div>
有了这段代码,我可以把div移到我想要的地方,但是我想要的是像pharrell williams页面中那样进行动员,我有一个平等的项目,我想学习