-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Switch to simpler looking loading spinner #19091
Comments
GIFs don't work well on all backgrounds and should never be used for a spinner where you don't control the environment It would be best to go with CSS. I've never been a fan of the Android spinner, but I know picking a good one is time consuming. |
A few more issues with GIFs: apps and users can't theme them. With CSS, you change the colour and you're in business. |
@oparoz as said in another issue: GIFs can be themed – simply change the image in the theme. It is correct though that there are issues with the background and the look, I don’t disagree with that. However, we should approach this properly with 9.0 and from core out, not Gallery going its own way for 8.2, essentially breaking themed loading spinners. |
Yes, but that means creating an entirely new spinner or having excellent Photoshop skills. You can't just set the colour via CSS. |
There are also pure-CSS spinners (probably not working in IE8 but who cares) |
You know who ;), Chinese users stuck on XP :) |
And there is a big problem which needs to be solved in core for 9.0 regarding the spinner. They need to be applied to their own divs so that themes can't use high quality spinner. You have to get rid of all the spinners which are simply applied to large containers. |
Use a DIV spinner, go to settings, make the window narrow, try to use the top-right menu. It doesn't work. |
Played around a bit with a good-looking CSS spinner, here’s what we could start with:
Anyone up for playing around with that @owncloud/designers? |
Looking forward to testing this :) |
I would double the time (otherwise it looks a bit too fast). Beside that it looks really nice :) |
should be able to have all in the themefolder best regards |
@jancborchardt I like your code sample, but would maybe slow it down like @MorrisJobke suggested. |
well, i did not know Jan's issue before, but i have send also an an sample .... |
@blackcrack - Just add the CSS to your custom theme's CSS and it will replace the original spinner |
well, some designer it's maybe happy if he must not search in the whole css files or something and it is clean to see which it is which .. i can, but not any it's so well like you and me where can do it.. by the way, i am do not only css i am also in php ;) but at moment i am in work with my laptop and this writing is it which I can now only do .. i have to concentrate to my job.. ;) |
Also would be good to put this into a pseudo element with an overlaying background so you can keep the original content of the element if you refresh or reload something via ajax. |
Would also be good for #22350 |
Catching up with the material trend http://codepen.io/prastutkumar/pen/grbKZZ |
@prastut the Material Design spinner takes way too much attention because it’s so complex. A spinner is not supposed to do that. Also, it’s heavily branded and associated with Google/Android, so we will not use it. If you’re up for improving the spinner, check out the code I posted at #19091 (comment) and feel free to implement it. :) |
Really? Firefox could not use any CSS transitions?
Then we simply need to add them as a different class name ;) it is even a complete different concept. Fine with me. |
We're loosing focus! :) SMIL is working on all browsers except ie. Either way, i'm currently working on a hack to have a svg with css AND smil combined that override the smil animation in case of css support, i'm very close to success. If so, we will use it because it will assure us a full compatibility and a smooth transition from smil abandon to full css support. |
@skjnldsv yeah! Take charge and just go for it :) not so much discussion. If something doesn't work, we can still fix it going forward. |
Ok, then we close this one, let's review #24107. I tried to mix both of them, but the firefox bug is too much. |
There is an alternative which would work in all browsers. Use a transparent PNG instead of a SVG. It works because ownCloud uses a simple rotating spinner. Themes will have to patch ownCloud to use fancy CSS spinners. |
and therefore would be pretty well, if exist in the css .spinner { } and the html code a <div class='spinner'> </div> to have later the possible for more easy change out the spinner in themes. best regards |
@oparoz and how will you make it spin? @blackcrack we already have this! We have multiple class for the loader (loading, icon-loading, icon-loading-small...) |
@skjnldsv CSS3 with :before? |
@skjnldsv I initially thought the whole element could rotate, but that won't work of course, since in a lot of case the spinner is added as a background-image, so using :before should work, but then we'll end up with the same issues you've previously described with input fields. |
:before is great, but look at #19091 (comment) The best solution if we use aft/bef, is to use two elemnts with border-radius, and make one rotate. Best result and best compatibility. EDIT: I was too slow! :) |
@skjnldsv That could work, but if using JS, why not simply use PNG sprites then? or even CSS only |
Because sprites are very heavy for the browser to render when animated, and a lot more bigger size! :/ |
@skjnldsv - Also, this PNG example is 1.4k (paste in the browser). Even if we want to include all 12 steps, that's 5.6k.
Having said that, we could still go with CSS only and use a gif for inputs since we have those for IE anyway. |
Css only is a good idea. Lighter and easier to maintain. |
Looks good both on desktop and browser, no problem with speed. |
Seems good to me too! I updated with differents examples. |
Looks good, many thanks for the examples :) |
I'm zombying on the codepen until I fall asleep. i will integrate it on oc tomorrow. |
Done, please review! |
@skjnldsv : it's maybe not bad, if be renamed ? into /*spinner*/
.spinnerbig {}
.spinnermedium {}
.spinnersmall {} because, this name does more suitable ? .. also for the future, name it what it is . best regards |
Why? Don't really think this is that much of a deal :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
We should switch to a simpler spinner for the next version. The current one is very complex, has many parts, and the GIF is not optimized for HiDPI.
Similar to this maybe (of course better quality and scalable etc.):
Or the one of the new HTML5 player on https://twitch.tv
Ref owncloud/gallery#336 for previous discussion on the spinner. cc @owncloud/designers @oparoz
The text was updated successfully, but these errors were encountered: