Skip to content
Extraits de code Groupes Projets
Valider 76ad02f2 rédigé par Dennis Collinson's avatar Dennis Collinson
Parcourir les fichiers

hella spinners

parent eb2eaa8e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -19,6 +19,7 @@ app.forms.Picture = app.views.Base.extend({ ...@@ -19,6 +19,7 @@ app.forms.Picture = app.views.Base.extend({
submitForm : function (){ submitForm : function (){
this.$("form").submit(); this.$("form").submit();
this.$(".photos").append($('<span class="loader" style="margin-left: 80px;"></span>'))
}, },
photoUploaded : function(evt, xhr) { photoUploaded : function(evt, xhr) {
......
/* /*
*= require media-box *= require media-box
*= require loader
*= require lightbox *= require lightbox
*= require autocomplete *= require autocomplete
*= require mentions *= require mentions
......
@-webkit-keyframes fade-in {
0% { opacity: 0; }
100% { opacity: 1; }
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@-moz-keyframes fade-in {
0% { opacity: 0; }
100% { opacity: 1; }
}
@-moz-keyframes spin {
0% { -moz-transform: rotate(0deg); }
100% { -moz-transform: rotate(360deg); }
}
.loaded {
-webkit-animation: fade-in 0.16s linear;
-moz-animation: fade-in 0.16s linear;
}
.loader {
-webkit-mask-image: image-url('static-loader.png');
-webkit-animation: spin 1s infinite ease-in-out,
fade-in 0.2s ease-in;
-moz-animation: spin 1s infinite ease-in-out,
fade-in 0.2s ease-in;
}
@-webkit-keyframes fade-in {
0% { opacity: 0; }
100% { opacity: 1; }
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@-moz-keyframes fade-in {
0% { opacity: 0; }
100% { opacity: 1; }
}
@-moz-keyframes spin {
0% { -moz-transform: rotate(0deg); }
100% { -moz-transform: rotate(360deg); }
}
#paginate, #infscr-loading { #paginate, #infscr-loading {
margin-top: 10px; margin-top: 10px;
padding: 8px 0; padding: 8px 0;
...@@ -5,17 +25,29 @@ ...@@ -5,17 +25,29 @@
width: 100%; width: 100%;
display: block; display: block;
clear: both; clear: both;
}
.loaded {
-webkit-animation: fade-in 0.16s linear;
-moz-animation: fade-in 0.16s linear;
}
.loader {
-webkit-mask-image: image-url('static-loader.png');
-webkit-animation: spin 1s infinite ease-in-out,
fade-in 0.2s ease-in;
-moz-animation: spin 1s infinite ease-in-out,
fade-in 0.2s ease-in;
.loader { background-image : image-url("static-loader.png");
display: inline-block;
&.hidden{ display: inline-block;
display : none; width : 14px;
} height: 14px;
background-color: red;
width : 14px; &.hidden{
height: 14px; display : none;
background-image : url(asset_path("static-loader.png", "image"))
} }
} }
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter