00%
Scroll:
СКОПИРОВАТЬ
КАК СДЕЛАТЬ

Для реализации эффекта высота блока должна быть больше высоты экрана.

1. Укажи в настройках id всех блоков через запятую, которым нужно добавить эффект.
2. Скопируй этот код и вставь в отдельный HTML блок на свой сайт

<!-- https://gargaloid.ru/imagescroll -->
<script>

$(function(){
    /* Укажи id всех блоков через запятую, которым нужно добавить эффект наложения */
    var id = '#rec583958315,#rec583961950,#rec583962148';

    $('head').append('<style>body {overflow-x: hidden;}#allrecords {overflow: visible !important;}#t-header,#t-footer {position: relative;z-index: 2;} .t-rec {position: relative;z-index: 1;overflow-x: hidden;}'+id+' { position: -webkit-sticky; position: sticky; top: 0; z-index: 0;}</style>');
    
    $(window).on('load resize', function(){
        $(id).each(function(){
            var topPosition = $(window).height() - $(this).height();
            if (topPosition < 0) {
                $(this).css('top',topPosition)
            } else {
                $(this).css('top',0)
            }
        });
    });
});

</script>
Made on
Tilda