ANIMATION AND TRANSITIONS CSS FILE
body { height : 100 vh ; 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 : 2 px solid ; height : 200 px ; width : 200 px ; /* transform: rotate(30deg); transform: skew(130deg); transform: scaleX(4); transform: scaleY(4); transform: scaleZ(4); */ transition : transform 1 s ease , background-color 1 s linear , border 1 s linear ,border-radius 1 s ease ; } #container:hover { transform : rotate ( 57 deg ) translate ( 20 px ); background-color : rgb ( 13 , 129 , 67 ); border : 5 px solid white ; border-radius : 50 % ; }

Comments
Post a Comment