ANIMATION AND TRANSITIONS CSS FILE
body{
height: 100vh;
background-color: black;
display: flex;
justify-content:center ;
align-items: center;
}
header{
color: white;
position: absolute;
top: 0;
font-size: xx-large;
text-transform: uppercase;
text-align: center;
}
#container{
background-color: rgba(205, 21, 0, 0.978);
border: 2px solid;
height: 200px;
width: 200px;
/* transform: rotate(30deg);
transform: skew(130deg);
transform: scaleX(4);
transform: scaleY(4);
transform: scaleZ(4); */
transition: transform 1s ease, background-color 1s linear,
border 1s linear,border-radius 1s ease;
}
#container:hover{
transform: rotate(57deg) translate(20px);
background-color: rgb(13, 129, 67);
border: 5px solid white;
border-radius: 50%;
}
Comments
Post a Comment