diff --git a/examples/animation.html b/examples/animation.html
index 3eae57f489..dbe6d34ff3 100644
--- a/examples/animation.html
+++ b/examples/animation.html
@@ -32,6 +32,7 @@
+
diff --git a/examples/animation.js b/examples/animation.js
index a14ea27954..de211bde63 100644
--- a/examples/animation.js
+++ b/examples/animation.js
@@ -49,6 +49,17 @@ rotateRight.addEventListener('click', function() {
map.beforeRender(rotateRight);
}, false);
+var rotateAroundRome = document.getElementById('rotate-around-rome');
+rotateAroundRome.addEventListener('click', function() {
+ var currentRotation = view.getRotation();
+ var rotateAroundRome = ol.animation.rotate({
+ anchor: rome,
+ duration: 1000,
+ rotation: currentRotation
+ });
+ map.beforeRender(rotateAroundRome);
+ view.rotate(currentRotation + (Math.PI / 2), rome);
+}, false);
var panToLondon = document.getElementById('pan-to-london');
panToLondon.addEventListener('click', function() {