Coder Social home page Coder Social logo

Comments (4)

Behseini avatar Behseini commented on June 20, 2024

Hi Again, I just noticed that this issue is happening when I am using Bootstrap Carousel in the about Section !

from fakeloader.js.

AlexRebula avatar AlexRebula commented on June 20, 2024

Hey Behseini. Have you found the solution to your problem? Does it still happen?

I am doing some work on this plugin myself and I encounter a similar problem with a new element I added to the plugin. I solved the problem by the traditional way of first setting the 'display: none' CSS property to the newely added element (added a new brandLogo property... check out my fork) and once the element is placed to the center of the screen I simply fade it in. If you still have this problem with your spinner this may be the solution.

BTW, can you show me the code that replicated the bug? Because if the problem persists, this is a matter of two lines of code, so I might fix this im my fork.

from fakeloader.js.

AlexRebula avatar AlexRebula commented on June 20, 2024

Aha, I see this bug has been issued. It would be good if the author would close this issue then not to confuse us. :)

from fakeloader.js.

juan-manuel-alberro avatar juan-manuel-alberro commented on June 20, 2024

I have the same issue and I fixed in this way (check the .hide() and .fadeIn() chained in the selector)

    function centerLoader() {

        var winW = $(window).width();
        var winH = $(window).height();

        var spinnerW = $('.fl').outerWidth();
        var spinnerH = $('.fl').outerHeight();

        $('.fl').hide().css({
            'position':'absolute',
            'left':(winW/2)-(spinnerW/2),
            'top':(winH/2)-(spinnerH/2)
        }).fadeIn();

    }

from fakeloader.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.