CSWSite/public/web/js/solutions.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// JavaScript Document
$(function(){
function isScrolledIntoView(elem) {
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(elem).offset().top;
if (elemTop + 50 < docViewBottom) {
return true
} else {
return false
}
}
function animateTop(item, time,callback) {
if ($(item).attr('init') == 'false'&& isScrolledIntoView($(item).parent()) ){
$(item).attr('init', 'true');
setTimeout(function(){
$(item).animate({'bottom': '0'}, 800, 'easeOutCubic');
callback;
},time)
}
}
function ftAnimate(item, time) {
if ($(item).attr('init') == 'false'&& isScrolledIntoView($(item))) {
$(item).attr('init', 'true');
setTimeout(function(){
$(item).animate({'bottom': '0'}, 800, null);
},time)
}
}
function animateBot(item, time, callback) {
$(item).delay(time).animate({'top': '650px'}, 1200, 'easeOutCubic', callback)
}
var floor1Init = false,
boxElemets = $('.J_Box'),
certs = $('.box_b');
$.each(boxElemets, function () {
$(this).attr('init', 'false');
});
$.each(certs, function () {
$(this).attr('init', 'false');
});
function animateInit(){
$.each(boxElemets, function () {
if ($(this).attr('init') == 'false' && isScrolledIntoView($(this))) {
$(this).attr('init', 'true');
$(this).animate({'left': '50%','top':'10%'}, 1000, 'easeOutCubic');
}
});
}
后面还有 6 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
