JavaScript - page has to be refreshed to show particle-slider logo effect

后端 未结 5 1128
旧时难觅i
旧时难觅i 2020-12-22 11:21

I\'m loading a front-end site from Wordpress using a HTML 5 Blank Child Theme. I have a logo effect using particle slider for when I have a screen size of >960px; for screen

5条回答
  •  一生所求
    2020-12-22 12:20

    You can use the resize function of ParticleSlider in jquery smart resize. So you will have more control on the function.

    var ps = new ParticleSlider({ 'width': '1400', 'height': '600' });
    $(window).on("debouncedresize", function( event ) {
        ps.resize();
    });
    

提交回复
热议问题