Skip to content

Clear splashscreen after click #1

@Jerome2606

Description

@Jerome2606

Hi,

Thanks for your script, it's simply great !
I want that when user click on splashscreen, it disappears.
In this purpose, I load the splashscreen as below:

$.SplashScreen({
        timeToFade: 1000, // in milliseconds (eg: 1000 = 1sec)
        timeOut: 10000   // in milliseconds (eg: 2000 = 2sec)
    });

    //todo: click ne marche pas
    $('#splashscreen').click(function () {
        $('#splashscreen').fade("fast", 0);
    });

this gives that click make splashscreen disappear but after the timeout of 10 seconds, the splashscreen come back and never disappear.
This is cause by a toggle fade i think.
So how can I clear the timeout manually ?
Or how to make that after 10 seconds the fade is to opacity 0 even if current opacity is already 0 ?

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions