Added solution to Use the CSS Transform scale Property to Change the Size of an Element (#34442)
* Update index.md * Added full solution * Update index.md
This commit is contained in:
committed by
Randell Dawson
parent
1c919b64a9
commit
1e2e95612c
@@ -3,8 +3,31 @@ title: Use the CSS Transform scale Property to Change the Size of an Element
|
||||
---
|
||||
## Use the CSS Transform scale Property to Change the Size of an Element
|
||||
|
||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/responsive-web-design/applied-visual-design/use-the-css-transform-scale-property-to-change-the-size-of-an-element/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
||||
```html
|
||||
<style>
|
||||
.ball {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin: 50 auto;
|
||||
position: fixed;
|
||||
background: linear-gradient(
|
||||
35deg,
|
||||
#ccffff,
|
||||
#ffcccc
|
||||
);
|
||||
border-radius: 50%;
|
||||
}
|
||||
#ball1 {
|
||||
left: 20%;
|
||||
}
|
||||
#ball2 {
|
||||
left: 65%;
|
||||
transform: scale(1.5);
|
||||
}
|
||||
|
||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
||||
|
||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
||||
</style>
|
||||
|
||||
<div class="ball" id= "ball1"></div>
|
||||
<div class="ball" id= "ball2"></div>
|
||||
```
|
||||
|
Reference in New Issue
Block a user