Add or remove whitespace

This commit is contained in:
1UP 2015-12-09 03:20:28 +09:00
parent 43fe45994c
commit 44b2600195
5 changed files with 27 additions and 21 deletions

View File

@ -1,11 +1,8 @@
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
var concatAnim;
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
@ -71,22 +68,21 @@ module.exports = function(grunt) {
tasks: ['default']
}
}
});
// fuction to perform custom task
concatAnim = function () {
var categories = grunt.file.readJSON('animate-config.json'),
category, files, file,
target = [ 'source/_base.css' ],
count = 0;
for ( category in categories ) {
if ( categories.hasOwnProperty(category) ) {
for (category in categories) {
if (categories.hasOwnProperty(category)) {
files = categories[category];
for (file in files) {
if ( files.hasOwnProperty(file) && files[file] ) {
if (files.hasOwnProperty(file) && files[file]) {
target.push('source/' + category + '/' + file + '.css');
count += 1;
}
@ -102,12 +98,10 @@ module.exports = function(grunt) {
grunt.config('concat', { 'animate.css': target });
grunt.task.run('concat');
};
// register task
grunt.registerTask('concat-anim', 'Concatenates activated animations', concatAnim); // custom task
grunt.registerTask('default', ['concat-anim', 'autoprefixer', 'cssmin', 'usebanner']);
grunt.registerTask('dev', ['watch']);
};

View File

@ -1,6 +1,4 @@
@keyframes headShake {
0 {
transform: translateX(0);
}
@ -26,7 +24,6 @@
}
}
.headShake {
animation-timing-function: ease-in-out;
animation-name: headShake;

View File

@ -2,32 +2,37 @@
from, 11.1%, to {
transform: none;
}
22.2% {
transform: skewX(-12.5deg) skewY(-12.5deg);
}
33.3% {
transform: skewX(6.25deg) skewY(6.25deg);
}
44.4% {
transform: skewX(-3.125deg) skewY(-3.125deg);
}
55.5% {
transform: skewX(1.5625deg) skewY(1.5625deg);
}
66.6% {
transform: skewX(-0.78125deg) skewY(-0.78125deg);
}
77.7% {
transform: skewX(0.390625deg) skewY(0.390625deg);
}
88.8% {
transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
}
}
.jello{
animation-name:jello;
transform-origin: center;
animation-name:jello;
transform-origin: center;
}

View File

@ -1,6 +1,11 @@
@keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.fadeIn {

View File

@ -1,6 +1,11 @@
@keyframes fadeOut {
from {opacity: 1;}
to {opacity: 0;}
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.fadeOut {