Created
July 30, 2017 00:23
-
-
Save t-okushima/45629fe3e6e4da07ef10b3985c27e4cf to your computer and use it in GitHub Desktop.
PostCSSでCSSを変換 ref: http://qiita.com/t-okushima/items/e910ef9dd858ac6634e8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev gulp-postcss autoprefixer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'), | |
postcss = require('gulp-postcss'); | |
// apply PostCSS plugins | |
gulp.task('css', function() { | |
return gulp.src('css/test.css') | |
.pipe(postcss([ | |
require('autoprefixer')({}) | |
])) | |
.pipe(gulp.dest('dest/css/test.css')); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bg-bubbles { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
z-index: 1; | |
} | |
.bg-bubbles li { | |
position: absolute; | |
list-style: none; | |
display: block; | |
width: 40px; | |
height: 40px; | |
background-color: rgba(255, 255, 255, 0.15); | |
bottom: -160px; | |
border-radius:50%; | |
animation: square 25s infinite; | |
transition-timing-function: linear; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bg-bubbles { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
z-index: 1; | |
} | |
.bg-bubbles li { | |
position: absolute; | |
list-style: none; | |
display: block; | |
width: 40px; | |
height: 40px; | |
background-color: rgba(255, 255, 255, 0.15); | |
bottom: -160px; | |
border-radius:50%; | |
-webkit-animation: square 25s infinite; | |
animation: square 25s infinite; | |
-webkit-transition-timing-function: linear; | |
transition-timing-function: linear; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment