E
E
Eugene Chefranov2018-02-25 14:02:23
css
Eugene Chefranov, 2018-02-25 14:02:23

How to fix hidden block before parallax?

I connected parallax.js to the page
There are two blocks.
The first block has a hidden block, which is revealed by clicking on the link.
The second block has parallax.
So, when I click on a link and open a hidden block, this block will overlap with the second block.
How can you fix this?
5a9297abab76d932301172.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Chefranov, 2018-02-25
@Chefranov

Fixed as follows.

$('a.expand').click(function (e) {
        e.preventDefault();
        var blockid = $(this).attr('data-block');
        $(blockid).toggle(800, function () {
            $(window).resize();
        });
    });

After the opening event, we resize the window and it becomes normal

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question