function tw_update() {
for (let id in tw_scroll) {
let item = tw_scroll[id];
let tw_effect = tw_effects[item.data('twid')];
// ----------
if (!item.is('.tw_run')) {
// Положение
let scrolled = $(document).scrollTop();
let top = item.offset().top;
let bottom = +top + item.height();
let limit = $(window).height() * tw_effect.screen / 100;
// Обработка
if ((bottom < (+scrolled + +limit)) && (bottom > scrolled )) {
if (!item.is('.tw_done')) tw_transform(item, tw_effect.speed);
} else {
item.removeClass('tw_done');
}
}
}
}
</script> '&', '#', '*', '0', '$', '@', '^', ',', ':', '!', '?', '<', '>'];
var tw_scroll = [];
// ----------
$(document).ready(function() {
// Запуск
for (let id in tw_effects) {
let tw_effect = tw_effects[id];
// ----------
$(tw_effect.item + ' .tn-atom, ' + tw_effect.item + ' .t-btn').each(function(e) {
$(this).data('twid', id);
// ----------
{
for (let id in tw_scroll) {
let item = tw_scroll[id];
let tw_effect = tw_effects[item.data('twid')];
// ----------
if (!item.is('.tw_run')) {
// Положение
let scrolled = $(document).scrollTop();
let top = item.offset().top;
let bottom = +top + item.height();
let limit = $(window).height() * tw_effect.screen / 100;
// Обработка
if ((bottom < (+scrolled + +limit)) && (bottom > scrolled )) {
if (!item.is('.tw_done')) tw_transform(item, tw_effect.speed);
} else {
item.removeClass('tw_done');
}
}
}
}
</script> '&', '#', '*', '0', '$', '@', '^', ',', ':', '!', '?', '<', '>'];
var tw_scroll = [];
What is THCa
Share
Lorem ipsum dolor sit amet consectetur. Ligula eget aliquam viverra euismod dictumst ut parturient tincidunt penatibus. Arcu etiam pretium egestas aliquet tempor consequat maecenas. Ligula pulvinar eu feugiat nunc bibendum. Lobortis ipsum aliquam dolor vestibulum quam urna in tristique.
Lorem ipsum dolor sit amet consectetur. Ligula eget aliquam viverra euismod dictumst ut parturient tincidunt penatibus. Arcu etiam pretium egestas aliquet tempor consequat maecenas. Ligula pulvinar eu feugiat nunc
Lorem ipsum dolor sit amet consectetur. Ligula eget aliquam viverra euismod dictumst ut parturient tincidunt penatibus. Arcu etiam pretium egestas aliquet tempor consequat maecenas. Ligula pulvinar eu feugiat nunc
Lorem ipsum dolor sit amet consectetur. Ligula eget aliquam viverra euismod dictumst ut parturient tincidunt penatibus. Arcu etiam pretium egestas aliquet tempor consequat maecenas. Ligula pulvinar eu feugiat nunc
Lorem ipsum dolor sit amet consectetur. Ligula eget aliquam viverra euismod dictumst ut parturient tincidunt penatibus. Arcu etiam pretium egestas aliquet tempor consequat maecenas. Ligula pulvinar eu feugiat nunc.