WebRoot/js/scrollReveal.js
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
_ _ _____ _ _
| | | __ \ | | (_)
___ ___ _ __ ___ | | | |__) |_____ _____ __ _| | _ ___
/ __|/ __| '__/ _ \| | | _ // _ \ \ / / _ \/ _` | | | / __|
\__ \ (__| | | (_) | | | | \ \ __/\ V / __/ (_| | |_| \__ \
|___/\___|_| \___/|_|_|_| \_\___| \_/ \___|\__,_|_(_) |___/ v.0.1.3
_/ |
|__/
"Declarative on-scroll reveal animations."
/*=============================================================================
scrollReveal.js was inspired by cbpScroller.js (c) 2014 Codrops.
Licensed under the MIT license.
http://www.opensource.org/licenses/mit-license.php
=============================================================================*/
/*! scrollReveal.js v0.1.3 (c) 2014 Julian Lloyd | MIT license */
/*===========================================================================*/
window.scrollReveal = (function (window) {
'use strict';
// generator (increments) for the next scroll-reveal-id
var nextId = 1;
/**
* RequestAnimationFrame polyfill
* @function
* @private
*/
var requestAnimFrame = (function () {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
function (callback) {
window.setTimeout(callback, 1000 / 60);
};
}());
function scrollReveal(options) {
this.options = this.extend(this.defaults, options);
this.docElem = this.options.elem;
this.styleBank = {};
if (this.options.init == true) this.init();
}
scrollReveal.prototype = {
defaults: {
after: '0s',
后面还有 353 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
