1.1.2 • Published 6 years ago

axial3d v1.1.2

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

轴动效果 axial3d

npm version npm downloads MIT

3D效果页插件,类似 Github404 页面动画。

安装引入 Install

npm install axial3d

or

<script src="https://unpkg.com/axial3d"></script>

例子 Example

Demo

<html>
<head>
    <title>Demo - Axial3d</title>
</head>
<body>
    <script src="https://unpkg.com/axial3d"></script>
    <div id="axial3d"></div>
    <script>
        (function () {
            var options = {
                selector: '#axial3d',
                imgs: [
                    {src: 'https://bestvist.github.io/axial3d/public/demo1/bg.png', left: '50px', top: '10px'},
                    {src: 'https://bestvist.github.io/axial3d/public/demo1/2.png', left: '150px', top: '10px'},
                    {src: 'https://bestvist.github.io/axial3d/public/demo1/3.png', left: '50px', top: '300px'},
                    {src: 'https://bestvist.github.io/axial3d/public/demo1/4.png', left: '300px', top: '300px'}
                ]
            }
            var effect = new Axial3d(options);
        })()
    </script>
</body>
</html>

npm.io

属性 Props

options

属性说明类型可选值默认值
selector元素选择器String--
imgs图片组Array--
transform动画形式Stringtranslate / rotatetranslate
swing动画幅度Number-5

imgs options

属性说明类型可选值默认值
src图像路径String--
top图片顶部定位String--
bottom图片底部定位String--
left图片左侧定位String--
right图片右侧定位String--
static图片是否静态,不随鼠标转动Booleantrue / falsefalse

方法 Methods

事件名称说明回调参数
destory取消事件监听-

License

MIT

1.1.2

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago