- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Features of transform-origin, part 3</title>
<meta charset="utf-8">
<link rel="stylesheet" href="world.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="world homeworld">
<div class="picture-frame">
<div class="picture"></div>
</div>
</div>
</body>
</html>
CSS
.picture {
}
You’ve gone to a different page
Goalscompleted
0
- Set the
transform
property to the valuerotate(10deg)
for the.picture
block, - and then set the
transform-origin
property to the valuetop left
. - Change the
transform
value torotate(20deg)
. - Change the value of
transform-origin
toright bottom
.
Comments