diff --git a/live-examples/css-examples/transforms/transform-origin.html b/live-examples/css-examples/transforms/transform-origin.html index b6cf9f3e7..c715acf6b 100644 --- a/live-examples/css-examples/transforms/transform-origin.html +++ b/live-examples/css-examples/transforms/transform-origin.html @@ -1,27 +1,28 @@
-
-
transform-origin: center;
+
+
transform-origin: center;
-
-
transform-origin: top left;
+
+
transform-origin: top left;
-
-
transform-origin: 50px 50px;
+
+
transform-origin: 50px 50px;
-
-
transform-origin: bottom right 60px;
+
+
/* 3D rotation with z-axis origin */
+transform-origin: bottom right 60px;
diff --git a/live-examples/css-examples/transforms/transform-origin.js b/live-examples/css-examples/transforms/transform-origin.js index 36766ff74..a10c1a488 100644 --- a/live-examples/css-examples/transforms/transform-origin.js +++ b/live-examples/css-examples/transforms/transform-origin.js @@ -2,7 +2,7 @@ window.addEventListener('load', () => { function update() { - const selected = document.querySelector('.selected code'); + const selected = document.querySelector('.selected'); /* Restart the animation https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Tips */