hella spinners
This commit is contained in:
parent
eb2eaa8ea1
commit
76ad02f2a5
4 changed files with 41 additions and 42 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
/*
|
/*
|
||||||
*= require media-box
|
*= require media-box
|
||||||
*= require loader
|
|
||||||
*= require lightbox
|
*= require lightbox
|
||||||
*= require autocomplete
|
*= require autocomplete
|
||||||
*= require mentions
|
*= require mentions
|
||||||
|
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
@-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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,3 +1,23 @@
|
||||||
|
@-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 @@
|
||||||
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;
|
||||||
|
|
||||||
|
background-image : image-url("static-loader.png");
|
||||||
|
|
||||||
.loader {
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
width : 14px;
|
||||||
|
height: 14px;
|
||||||
|
background-color: red;
|
||||||
|
|
||||||
&.hidden{
|
&.hidden{
|
||||||
display : none;
|
display : none;
|
||||||
}
|
}
|
||||||
|
|
||||||
width : 14px;
|
|
||||||
height: 14px;
|
|
||||||
background-image : url(asset_path("static-loader.png", "image"))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue