mov eto 介绍
一个 轻量级(只有1kb gzip)滚动动画JavaScript库,没有任何依赖。?
mov eto 安装
使用npm
npm install mov eto --save
使用yarn
yarn add mov eto
使用Bower
bower install mov eto --save
mov eto 用法
const mov eto = new Mov eto ();
const target = document.getElementById('target');
mov eto .move(target);
// Or register a trigger
const trigger = document.getElementsByClassName('js-trigger')[0];
mov eto .registerTrigger(trigger);
触发html 标记
您可以将所有选项作为带有mt前缀的数据 属性 传递。选项 名称 应以烤肉串案例格式编写,例如
<a href="#target" class="js-trigger" data-mt-duration="300">Trigger</a>
<!-- Or -->
<button type="button" class="js-trigger" data-target="#target" data-mt-duration="300">Trigger</button>
网站地址 : https://hsnaydd.github.io/moveTo/demo/
GitHub: https://github.com/hsnaydd/moveTo
网站描述: 一个 轻量级滚动动画javascript库没有任何依赖
moveTo官方网站
官方网站: https://hsnaydd.github.io/moveTo/demo/
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。