diff --git a/css-animation.md b/css-animation.md new file mode 100644 index 000000000..fc8ad43b9 --- /dev/null +++ b/css-animation.md @@ -0,0 +1,24 @@ +--- +title: CSS animations +layout: default +--- + + animation: bounce 300ms linear 100ms infinite alternate-reverse; + /* ^ ^ ^ ^ ^ ^ + name duration timing-function delay count direction */ + + # Example: + animation: bounce 300ms linear 0s infinite normal; + animation: bounce 300ms linear infinite; + animation: bounce 300ms linear infinite alternate-reverse; + + animation-name: bounce; + animation-delay: 100ms; + animation-duration: 300ms; + animation-direction: normal | reverse | alternate | alternate-reverse; + animation-iteration-count: infinite | ; + animation-timing-function: ease | linear | ease-in | ease-out | ease-in-out; + +### Event + + .one('webkitAnimationEnd oanimationend msAnimationEnd animationend') diff --git a/css.md b/css.md index 00a729e10..43c532159 100644 --- a/css.md +++ b/css.md @@ -48,27 +48,6 @@ Background background-attachment: scroll | fixed | local; background: url(x), url(y); /* multiple (IE9+) */ -Animations ----------- - -### Shorthand - - animation: bounce 300ms linear 100ms infinite alternate-reverse; - /* ^ ^ ^ ^ ^ ^ - name duration timing-function delay count direction */ - - # Example: - animation: bounce 300ms linear 0s infinite normal; - animation: bounce 300ms linear infinite; - animation: bounce 300ms linear infinite alternate-reverse; - - animation-name: bounce; - animation-delay: 100ms; - animation-duration: 300ms; - animation-direction: normal | reverse | alternate | alternate-reverse; - animation-iteration-count: infinite | ; - animation-timing-function: ease | linear | ease-in | ease-out | ease-in-out; - Webkit extensions ----------------- diff --git a/httpie.md b/httpie.md index 2c231e507..b5f2f92c5 100644 --- a/httpie.md +++ b/httpie.md @@ -5,9 +5,10 @@ layout: default $ http POST example.com/posts/3 \ Origin:example.com # : HTTP headers - name="John Doe" \ # = JSON data - q=="search" \ # == URL parameters + name="John Doe" \ # = string + q=="search" \ # == URL parameters (?q=search) age:=29 \ # := for non-strings + list:='[1,3,4]' # := json token=@token.txt \ # =@ read from file (text) user:=@user.json \ # :=@ read from file (json) diff --git a/less.md b/less.md index b7b2aead7..1d5d096dc 100644 --- a/less.md +++ b/less.md @@ -1,4 +1,13 @@ --- -title: Less +title: Less.js layout: default --- + +### Functions + + unit(30px / 5px) #=> 6 + unit(5, px) #=> 5px + + e("ms:stuff()") #=> ms:stuff() (unquote) + + %("count: %d", 1+2) #=> "count: 3" diff --git a/nodejs.md b/nodejs.md index e0d47fd5f..927f8f51f 100644 --- a/nodejs.md +++ b/nodejs.md @@ -64,7 +64,7 @@ layout: default process.stdout.write('...'); process.stderr.write('...'); - function readStdin(fn) { + function stdin(fn) { process.stdin.resume(); /* paused by default */ process.stdin.setEncoding('utf8');