Skip to content

armgit / anime

Public Imported from GitHub
0

JavaScript animation engine

Update gifs

Julian Garnier43ab5f0487bd
diff --git a/README.md b/README.md
index 78f502c1..db98dc0c 100644
--- a/README.md
+++ b/README.md
@@ -354,40 +354,12 @@ anime({
➜ [Function based value example](http://anime-js.com/v2/documentation/#functionBasedPropVal)
-## Keyframes
+### Keyframes
-### Basic keyframes
-
-<img src="documentation/assets/img/readme/keyframes-basic.gif" width="332" />
+<img src="documentation/assets/img/readme/value-keyframes.gif" width="332" />
Keyframes are defined using an `Array` of property `Object`.<br>
-Animation of multiple values played in a sequence:
-
-```javascript
-anime({
- targets: 'div',
- translateX: [
- { value: 80 },
- { value: 160 },
- { value: 250 }
- ],
- translateY: [
- { value: -40 },
- { value: 40 },
- { value: 0 }
- ],
- duration: 1500, // Duration will be divided by the number of keyframes of each properties, so 500ms each in this example
- delay: 500 // Delay will be applied only at the first keyframe
-});
-```
-
-➜ [Basic keyframes example](http://anime-js.com/v2/documentation/#basicKeyframes)
-
-### Specific keyframes properties
-
-<img src="documentation/assets/img/readme/keyframes-advanced.gif" width="332" />
-
-Use specific timing and easing functions for each keyframe:
+Instance's `duration`is divided by the number of keyframes of each properties if not specified.
```javascript
anime({
@@ -417,7 +389,7 @@ anime({
});
```
-➜ [Specific keyframes properties example](http://anime-js.com/v2/documentation/#specificKeyframeTimings)
+➜ [Specific keyframes properties example](http://anime-js.com/v2/documentation/#keyframes)
## Timeline
diff --git a/documentation/assets/css/documentation.css b/documentation/assets/css/documentation.css
index 3cd19cad..04911001 100644
--- a/documentation/assets/css/documentation.css
+++ b/documentation/assets/css/documentation.css
@@ -62,7 +62,7 @@ header {
border-bottom: 1px solid #000;
}
-h1, h2 {
+.logo, h2 {
opacity: .6;
font-size: 22px;
letter-spacing: 2px;
@@ -70,7 +70,7 @@ h1, h2 {
font-weight: 200;
}
-h1:hover {
+.logo:hover {
opacity: 1;
}
@@ -499,6 +499,10 @@ input.progress {
align-items: center;
}
+#cssProperties .el {
+ transform: translate3d(0,0,0);
+}
+
/* Responsive */
.header {
diff --git a/documentation/assets/img/readme/callbacks-all.gif b/documentation/assets/img/readme/callbacks-all.gif
index 1e211a2f..841edd8f 100644
Binary files a/documentation/assets/img/readme/callbacks-all.gif and b/documentation/assets/img/readme/callbacks-all.gif differ
diff --git a/documentation/assets/img/readme/playback-play-pause.gif b/documentation/assets/img/readme/playback-play-pause.gif
index 20b907d4..0a8db78c 100644
Binary files a/documentation/assets/img/readme/playback-play-pause.gif and b/documentation/assets/img/readme/playback-play-pause.gif differ
diff --git a/documentation/assets/img/readme/playback-reverse.gif b/documentation/assets/img/readme/playback-reverse.gif
new file mode 100644
index 00000000..1cfc55e3
Binary files /dev/null and b/documentation/assets/img/readme/playback-reverse.gif differ
diff --git a/documentation/assets/img/readme/playback-seek.gif b/documentation/assets/img/readme/playback-seek.gif
index e131652c..cea98ea6 100644
Binary files a/documentation/assets/img/readme/playback-seek.gif and b/documentation/assets/img/readme/playback-seek.gif differ
diff --git a/documentation/assets/img/readme/prop-css.gif b/documentation/assets/img/readme/prop-css.gif
index 024127e0..c4fa5f1e 100644
Binary files a/documentation/assets/img/readme/prop-css.gif and b/documentation/assets/img/readme/prop-css.gif differ
diff --git a/documentation/assets/img/readme/svg-line-drawing.gif b/documentation/assets/img/readme/svg-line-drawing.gif
index 91ac7cb7..44cee6ad 100644
Binary files a/documentation/assets/img/readme/svg-line-drawing.gif and b/documentation/assets/img/readme/svg-line-drawing.gif differ
diff --git a/documentation/assets/img/readme/svg-morphing.gif b/documentation/assets/img/readme/svg-morphing.gif
index c7913489..b34e0909 100644
Binary files a/documentation/assets/img/readme/svg-morphing.gif and b/documentation/assets/img/readme/svg-morphing.gif differ
diff --git a/documentation/assets/img/readme/svg-motion-path.gif b/documentation/assets/img/readme/svg-motion-path.gif
index 6d91de8c..5d14c849 100644
Binary files a/documentation/assets/img/readme/svg-motion-path.gif and b/documentation/assets/img/readme/svg-motion-path.gif differ
diff --git a/documentation/assets/img/readme/timeline-absolute.gif b/documentation/assets/img/readme/timeline-absolute.gif
new file mode 100644
index 00000000..75cc2eb7
Binary files /dev/null and b/documentation/assets/img/readme/timeline-absolute.gif differ
diff --git a/documentation/assets/img/readme/timeline-parameters.gif b/documentation/assets/img/readme/timeline-parameters.gif
new file mode 100644
index 00000000..5adadf33
Binary files /dev/null and b/documentation/assets/img/readme/timeline-parameters.gif differ
diff --git a/documentation/assets/img/readme/timeline-relative.gif b/documentation/assets/img/readme/timeline-relative.gif
new file mode 100644
index 00000000..4032a1db
Binary files /dev/null and b/documentation/assets/img/readme/timeline-relative.gif differ
diff --git a/documentation/assets/img/readme/timeline.gif b/documentation/assets/img/readme/timeline.gif
index db32d799..5d5bde88 100644
Binary files a/documentation/assets/img/readme/timeline.gif and b/documentation/assets/img/readme/timeline.gif differ
diff --git a/documentation/assets/img/readme/value-keyframes.gif b/documentation/assets/img/readme/value-keyframes.gif
new file mode 100644
index 00000000..19855488
Binary files /dev/null and b/documentation/assets/img/readme/value-keyframes.gif differ
diff --git a/documentation/index.html b/documentation/index.html
index b0325e4d..3906698e 100644
--- a/documentation/index.html
+++ b/documentation/index.html
@@ -15,7 +15,7 @@
<body>
<div class="content">
<header class="header">
- <h1><a class="logo" href="http://anime-js.com">anime.js</a></h1>
+ <a class="logo" href="https://github.com/juliangarnier/anime/"><h1>anime.js</h1></a>
</header>
<section class="pane sidebar">
<nav class="navigation"></nav>
@@ -145,8 +145,7 @@ var JSarray = anime({
</div>
<script>var cssProperties = anime({
targets: '#cssProperties .el',
- width: 280,
- opacity: .5,
+ left: 240,
backgroundColor: '#FFF',
borderRadius: 40,
easing: 'easeInOutQuad'