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 (){
|
||||
this.$("form").submit();
|
||||
this.$(".photos").append($('<span class="loader" style="margin-left: 80px;"></span>'))
|
||||
},
|
||||
|
||||
photoUploaded : function(evt, xhr) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
/*
|
||||
*= require media-box
|
||||
*= require loader
|
||||
*= require lightbox
|
||||
*= require autocomplete
|
||||
*= 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 {
|
||||
margin-top: 10px;
|
||||
padding: 8px 0;
|
||||
|
|
@ -5,17 +25,29 @@
|
|||
width: 100%;
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.loader {
|
||||
display: inline-block;
|
||||
.loaded {
|
||||
-webkit-animation: fade-in 0.16s linear;
|
||||
-moz-animation: fade-in 0.16s linear;
|
||||
}
|
||||
|
||||
&.hidden{
|
||||
display : none;
|
||||
}
|
||||
.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;
|
||||
|
||||
width : 14px;
|
||||
height: 14px;
|
||||
background-image : url(asset_path("static-loader.png", "image"))
|
||||
background-image : image-url("static-loader.png");
|
||||
|
||||
display: inline-block;
|
||||
width : 14px;
|
||||
height: 14px;
|
||||
background-color: red;
|
||||
|
||||
&.hidden{
|
||||
display : none;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue