Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loader animation until images are loaded #31

Open
buddh4 opened this issue Aug 29, 2018 · 5 comments
Open

Add loader animation until images are loaded #31

buddh4 opened this issue Aug 29, 2018 · 5 comments

Comments

@buddh4
Copy link
Contributor

buddh4 commented Aug 29, 2018

No description provided.

@UtmostCreator
Copy link
Contributor

I believe it is already in place. As if when I click on the image there's a small loader in the middle of the screen

@luke-
Copy link
Contributor

luke- commented Aug 16, 2020

@MasterMindNET I think this is also about a loader for the preview pictures.
@buddh4 Or can we close this issue?

@buddh4
Copy link
Contributor Author

buddh4 commented Aug 16, 2020

When opening the gallery overview or a gallery the preview image loading is not smooth. Each gallery item should be rendered with a loading animation until the preview image is fully loaded.

@UtmostCreator
Copy link
Contributor

UtmostCreator commented Aug 23, 2020

Hello, @buddh4!

Please could you give me some ideas/advice on how we can add smothe the animation?

How would you animate it?
the class called slide-loading is used for this.
I tried to add
transition-property: all; transition-duration: 1s;
But this did not help.

I also trying to detect by jQuery like this:

  $('.slide-loading').fadeOut('slow', function () {
        console.log('fadeOut');
        $('.slide').fadeIn('slow', function() {
            console.log('fadeIn');
        });
    });

in resources/js/gallery.js file. But it does not call a funtion even if I specify just before this line module.export({ console.log.
Help me out, where should I put the JS code i needed, or could give and idea on how to to in in CSS?

I am looking forward to hearing from you!
Thank you!

@UtmostCreator
Copy link
Contributor

UtmostCreator commented Aug 26, 2020

Hi, @luke-, @buddh4!

Please take a look at this PR link to PR;
I have added a preview transition; The first time you open it is slow(because it needs some time to load images; to avoid tearing effect/sudden appearing); followed by acceleration in subsequent transitions;
Mobile ver. seems really good with this transition effects xD

There is a bit strange principle in blueimg-gallery of the (slide-loading class, which is added when it is loading);

Please let me know what you think about these changes. If you wish to see some loader, let me know how it should look like!
It also would be good if you would give some ideas on implementation on this. (How could I test this a bit better? I mean, how can I slow down the loading time of the image? Any ideas? to see more detailed about which classes it applied and how it looks like; because It loads almost the same second as I open it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants