Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: src/site/samples/raf/index.markdown

Issue 27267004: Re-configured samples page. (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/site/samples/raf/index.markdown
diff --git a/src/site/samples/raf/index.markdown b/src/site/samples/raf/index.markdown
new file mode 100644
index 0000000000000000000000000000000000000000..8a74e0a33fdfb23e26a3c120bc9074157d8ad7ea
--- /dev/null
+++ b/src/site/samples/raf/index.markdown
@@ -0,0 +1,25 @@
+---
+layout: default
+title: Leaner, Meaner, Faster Animations with requestAnimationFrame
+live_example_url: /samples/raf/example/index.html
+header:
+ css: ["/samples/samples.css"]
+---
+
+## {{ page.title }}
+
+This sample ports the example used in
+[this HTML5Rocks article](http://www.html5rocks.com/en/tutorials/speed/animations/)
+by Paul Lewis about correctly using requestAnimationFrame for your animations.
+
+Use the up and down keys on your keyboard to activate the animation.
+
+Read the
+[source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/speed/animations).
+
+<iframe class="running-app-frame"
+ style="height:400px;width:100%;"
+ src="{{page.live_example_url}}">
+</iframe>
+
+See all [samples](/samples/)

Powered by Google App Engine
This is Rietveld 408576698