Skip to content

Commit

Permalink
clase 16
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybejarano committed Jul 8, 2022
1 parent 103e2fd commit e1973de
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
21 changes: 21 additions & 0 deletions clase16/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="/styles.css">
</head>

<body>
<div class="container">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="box4"></div>
</div>
</body>

</html>
61 changes: 61 additions & 0 deletions clase16/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.container {
background-color: gray;
margin-top: 50px;
position: relative;
height: 1000px;
width: 500px;
}

.box1,
.box2,
.box3{
width: 200px;
height: 200px;
}

.box1 {
left: 100px;
top: 100px;
position: relative;
background-color: red;
z-index: 1;
}
.box2 {
position: relative;
background-color: yellow;
z-index: 2;
transition: border-radius 1000ms cubic-bezier(0.35, 0.28, 0.6, 1.32);
}

.box2:hover {
border-radius: 50%;
}

.box3 {
position: absolute;
top: 0;
right: 0;
width: 200px;
background-color: blue;
animation: rotar 3s;
}
.box4 {
position: fixed;
background-color: green;
top: 0;
left: 0;
right: 0;
height: 100px;
}

@keyframes rotar {
from {
width: 0;
height: 0;
}
to {
transform: rotate(360deg);
width: 200px;
height: 200px;
}
}

0 comments on commit e1973de

Please sign in to comment.