slide3d

h5手势切换界面插件

Usage no npm install needed!

<script type="module">
  import slide3d from 'https://cdn.skypack.dev/slide3d';
</script>

README

Slide3D

H5 3D手势切换界面

获取

npm install slide3d

使用示例

https://codesandbox.io/s/slide3d-example-7c0s9

import Slide3D from 'slide3d';

const innerDom = `
  <div class="slide-item" index="1">1</div>
  <div class="slide-item" index="2">2</div>
  <div class="slide-item" index="3">3</div>
`;

new Slide3D("#app", innerDom, 'className');

参数说明

new Slide3D(挂载的dom节点, 滚动的内容, 自定义的css类名)