CSS Animation Flashcards
How do you tell a browser that a page or part of a page is a 3D scene?
transform-style: preserve-3d
How do you you set depth in a 3D scene?
With the perspective property.
Give the property a size in px, em, rem etc.
Is a transform a form of animation?
No. A transform is not a form of animation, it is a way of setting an element’s position.
What is a “hero image”?
A large, attention-grabbing image at the top of a hompage.
What property allows an animation to be paused on hover, for example?
animation-play-state
.screen:hover {
animation-play-state: paused;
}
The transform property is used by setting what of an element?
Setting a static position, skew or scale of an element.
Is a different transform required for each keyframe or state?
Yes
What must you set before using 3d transforms in CSS?
You must set a stage for the 3D using the perspective and transform-style properties.
In HTML terms, this means we create a container and tell the browser that some 3D stuff is going to happen.