connoratherton / loaders.css Goto Github PK
View Code? Open in Web Editor NEWDelightful, performance-focused pure css loading animations.
Home Page: https://connoratherton.com/loaders
Delightful, performance-focused pure css loading animations.
Home Page: https://connoratherton.com/loaders
These are beyond incredible. Is there currently a way to access the speed of the loading animation (slower/faster transitions between a given loader's various states)?
Firefox can't parse this (example):
animation: line-scale-pulse-out-rapid 0.9s 0 infinite cubic-bezier(.11,.49,.38,.78);
After changing it to
animation: line-scale-pulse-out-rapid 0.9s 0s infinite cubic-bezier(.11,.49,.38,.78);
it works.
People usually look for this rather than at the bottom of your README for a license. Here's the content of a standard Github MIT LICENSE file:
The MIT License (MIT)
Copyright (c) 2015 Connor Atherton
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Not really an issue ;)
For the need of a project, I wrote a directive which is doing basically the same stuff than the JQuery but for Angular.js. I thought it could be useful for some people.
Feel free to check it : https://github.com/the-cormoran/angular-loaders
Thanks for the good work btw.
I would like to contribute to the increase in the concentration of load animation, what are the considerations?
I am using this react loaders and there is no animation just static circles?
How to know the name of the specific loader?
Neither mentioned on the website nor in the README.
It will be good to see the names of the loaders on the website (maybe on hover).
Correct me if I am wrong.
Should that be in the repo if it's a development thing? If it's necessary (and not just a convenience thing) then could it go into src?
hi, i download your source code, and made a meteor package with it,
because there is no an official one,
and i believe many developers will love it ,
if you are not willing to see that, i will remove it !
and i promise i will update it when you publish a new version.
thanks for your hard work.
I Want to meke the loader littler
Is the loader #32 missing or did I miss something in the code ?
When I am using same CSS as used in demo, it's not showing ball of ball-clip-rotate-pulse
in center
I know i can dig into the code and use caniuse.com to figure this one out but I'm wondering if you know off hand what browsers this supports?
If so then it would be awesome if you could throw a table into the Readme for quick reference.
If not then just let me know and I'll jump in and cross reference with caniuse.com and maybe create a PR with the compatibility table ๐
It's fine if it's in the README, but there should be a link to it at the top of the page as well.
ball-clip-rotate and ball-clip-rotate-pulse have bogus scale animation in FF and IE.
The description says emphasis is on performance, but how does this compare to other libraries (animate-css/animate.css@c0abb26) or just an animated gif loader? Both CSS transitions and animated GIF loaders are blocked by JavaScript, but is there some other performance gain from using CSS transition loaders?
ball-scale-random block on the beginning before animation begins
https://github.com/ConnorAtherton/loaders.css/blob/master/loaders.css#L45
this project is very fantasy ! but i find the source code has the nth-child(0) selector . as far as i know.
it can't match any element . why is it exist ?
The background color of my page is white, so it becomes invisible.
Hi Connor,
Thank you for building this fantastic library, I've had a lot of fun incorporating it into my application. Connor I wanted to ask you how we can change the color of the loaders. I've actually gone to the trouble of changing the code in the loaders.min.css
file to .ball-pulse-sync>div,.ball-pulse>div{width:15px;height:15px;margin:2px;display:inline-block}.ball-pulse-sync>div,.ball-pulse>div,.ball-scale>div{background-color:#2F2F2F;border-radius:100%}@-webkit-keyframes scale{0%,80%{-webkit-transform:scale(1);transform:scale(1);opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);opacity:.7}}@keyframes
. The background color by default is #fff (white) I believe. This has worked when I am running the react application in the dev environment locally, however, once my application codebase is minified with webpack and deployed, this is not working. Any ideas why? Is there another way for us to make css changes to the loaders.min.css
file?
Thank you,
cc @jonjaques
Hey there,
Is there anyway to use this awesome project with pace.js?
Cheers.
Should the pacman close his mouth when eating? ๐ฎ ๐ถ
For the animation ball-triangle-path
the scss file is named as src/animations/ball-triangle-trace.scss
I think it would be nice to have consistent naming so upstream libs using this doesnt break when fetching files by animation name
The random animation delays (e.g.
loaders.css/src/animations/line-scale-random.scss
Lines 20 to 21 in 40dfe69
Every build results in a different CSS file, which is probably not ideal for a number of reasons:
If you don't see this as a problem, feel free to close this issue.
It'd be nice to have the demo/demo.html file unminified, in case someone wants to browse through the source.
where is the demo at 'https://connoratherton.com/loaders'?
Again, this makes the repo neat.
Hey there, I was working on integrating this library into my project and I noticed that ball-pulse-round
is missing from loaders.scss. Is this by design?
i need a smaller one loader,
it's too big, is there any ways to make it smaller ?
Hi, would be cool to have Material Design spinner too. Thanks
I have done a similar project in flutter inspired by your project.
Looks like this is failing because it wants JQuery that I don't have. However, $ is defined because chrome defines it if you are not using JQuery.
$.fn.loaders = function() {
return this.each(function() {
var elem = $(this);
$.each(divs, function(key, value) {
if (elem.hasClass(key))
elem.html(addDivs(value))
})
});
};
Bit of namespacing since "loaders.js" seems like it could be used for other things.
Then you can link to a live demo, and in the README link to the gh-pages branch for people who want to look at the code.
This will keep your repo neater.
.ball-grid-pulse > div: {
background: orange;
}
Hello, thanks for putting this together - Looks great so far!
Do you see utility in adding some sizing classes? Most of these are appropriate for loading panes or pages currently, but some might work well inside a button or other UI elements.
I'm currently wrapping a React component around this (props for active, type) and a sizing option would be great too. I'll see if I can get to a PR tonight but just wanted to get your thoughts.
There is no licensing information anywhere in the repository or README file.
css
.loader-small .loader-inner { transform: scale(0.5, 0.5); }
HTML
<div class="loader-small"> <div class="loader-inner ball-pulse"> <div></div> <div></div> <div></div> </div><span class="tooltip"> <p>ball-pulse</p></span> </div>
Please add a list of the needed classes in the html markup to use each loader effect.
This can be used in the mobile terminal?
As of chrome 43, it seems as though the animations will pulse, i.e grow and shrink as they run through the animation.
Add animation-fill-mode: both;
to a mixin then include in every animation to prevent the first frame flickering when the animation starts.
Everyone could/should be using Autoprefixer (or some similar/lesser tool) in their development environment. It's usually a bad practice to have prefixing in libraries.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.