File tree 1 file changed +14
-11
lines changed 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
transition: change over time
3
- transition-property :
4
- transition-duration:
3
+ transition-delay :
4
+ shorthand
5
5
*/
6
6
7
7
div {
@@ -10,27 +10,30 @@ div {
10
10
display : inline-block;
11
11
}
12
12
13
- div : hover {
14
- background : chartreuse;
15
- }
16
-
17
13
.one {
18
14
background : red;
19
15
}
20
16
21
17
.two {
22
18
background : blue;
23
- transition-property : background, border-radius;
19
+ /* transition-property: background, border-radius;
20
+ transition-duration: 4s, 2s; */
24
21
25
- /* 4s for all transition-properties */
26
- /* transition-duration: 4s ; */
22
+ /* transition delay */
23
+ /* transition-delay: 2s ; */
27
24
28
- /* 4s for background, 2s for border-radius */
29
- transition-duration : 4s , 2s ;
25
+ /* Transition shorthand for specific*/
26
+ /* transition: background 4s 2s, border-radius 2s 1s; */
27
+
28
+ /* Transition shorthand for all */
29
+ transition : all 2s 1s ;
30
30
}
31
31
32
32
.two : hover {
33
+ background : chartreuse;
33
34
border-radius : 50% ;
35
+ transform : scale (2 , 2 );
36
+ margin-top : 50% ;
34
37
}
35
38
36
39
.three {
You can’t perform that action at this time.
0 commit comments