Skip to content

Commit 8bcd5d4

Browse files
committed
Transform, Transition and Animation - Transition Property
1 parent b1bfc73 commit 8bcd5d4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

styles.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/*
2-
transform:skew()
2+
transition: change over time
3+
transition-property:
4+
transition-duration:
35
*/
46

57
div {
@@ -8,17 +10,20 @@ div {
810
display: inline-block;
911
}
1012

13+
div:hover {
14+
background: chartreuse;
15+
}
16+
1117
.one {
1218
background: red;
13-
transform: skewX(20deg);
1419
}
1520

1621
.two {
1722
background: blue;
18-
transform: skewY(20deg);
23+
transition-property: background;
24+
transition-duration: 4s;
1925
}
2026

2127
.three {
2228
background: green;
23-
transform: skew(30deg, 30deg);
2429
}

0 commit comments

Comments
 (0)