Transformations, Transitions, and Animations Flashcards

1
Q

How to rotate a box when we hover?

A

.box{
transform: rotate(15deg)
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to make a box larger?

A

.box{
transform: sclae(1.5);
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to make a box skew?

A

.box{
transform: skew(1.5);
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to move a box?

A

transform: translate(horizontal_axis, vertical_axis)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to achieve 3-D transformation?

A

We have to use perspective

.box:hover{
transform: perspective(200px) translateZ()
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are different transformation functions available?

A

translate
rotate
scale
skew

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is transition?

A

Transition: property_name time ease-in|linear delay_time

transition: transform .5s;
transition: transform .5s ease-out;
transition: transform .5s ease-out 1s; /* 1s delay */
transition: transform .5s, color .3s;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to apply Animation?

A
@keyframes pop {   
0% { 
   transform: scale(1); 
}   
50% { 
   transform: scale(1.5);
}    
75% { 
   transform: rotate(45deg); background: tomato; 
}   
100% { 
   transform: rotate(0); }
}

.box {
animation: pop 3s ease-out;
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Easy way of applying animation?

A

aimation.style

How well did you know this?
1
Not at all
2
3
4
5
Perfectly