scrimba
Applied Visual Design
Use the CSS Transform scale Property to Change the Size of an Element
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Use the CSS Transform scale Property to Change the Size of an Element
AboutCommentsNotes
Use the CSS Transform scale Property to Change the Size of an Element
Expand for more info
index.html
run
preview
console
<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%;

}


</style>

<div class="ball" id= "ball1"></div>
<div class="ball" id= "ball2"></div>
Console
index.html
-0:43