Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

Visibility not working in Safari

Open RobinVerheijen opened this issue 10 years ago • 3 comments

Hey guys,

Visibility isn't working at all in Safari (macOS, iOS works fine), not in the demo and not in my own project. Using simple code like this:

$('.left-showcase-image').visibility({
        once: false,
        onBottomVisible: function (calculations) {

            if(!$(this).hasClass('visible')) {

                $(this).transition({
                    animation: 'fade left',
                    duration: '1500ms'
                });
            }
        }
    });

The elements visible in the window on load are triggered, but not on scroll.

I do see these errors: "Element is hidden, you must call refresh after element becomes visible" in the console. Calling the refresh() doesn't fix anything...

Is anybody else experiencing this issue? Does someone have a solution for this?

RobinVerheijen avatar Jul 29 '16 23:07 RobinVerheijen

@RobinVerheijen I think you have to call .visbility('refresh') after on your element. Have a look at checkOnRefresh and observeChanges when configuring visibility behaviour http://semantic-ui.com/behaviors/visibility.html#/settings

FiF0o avatar Nov 02 '16 22:11 FiF0o

Hi @RobinVerheijen, did it help to call refresh afterwards?

awgv avatar Mar 03 '17 05:03 awgv

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 23 '18 15:02 stale[bot]