The CPU is located on the computer’s motherboard; it processes almost everything and is known as the brain of the computer.
The GPU is located on the graphics card of the computer, and is responsible for processing and rendering graphics.
CPU draws the layers
The best-performing version of the pixel pipeline avoids both layout and paint, and only requires compositing changes.
In order to achieve this you will need to stick to changing properties that can be handled by the compositor alone. Today there are only two properties for which that is true:
transforms and opacity
https://developers.google.com/web/fundamentals/performance/rendering/stick-to-compositor-only-properties-and-manage-layer-count
CSS transforms are implemented using a set of CSS properties that let you apply affine linear transformations to HTML elements. These transformations include rotation, skewing, scaling, and translation both in the plane and in the 3D space.
https://codepen.io/brigittewarner/pen/vGLRRj
CSS animations make it possible to animate transitions from one CSS style configuration to another. Animations consist of two components:
http://codepen.io/brigittewarner/pen/yOepQP
The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function, and transition-delay. It enables you to define the transition between two states of an element.
http://codepen.io/brigittewarner/pen/yOeoqz
@media screen and (min-width: 700px) and (orientation: landscape) { ... }
and, not, or
http://www.webdesignerwall.com/demo/media-queries/
.square {
background: red;
}
@media screen and (max-height: 720px) {
.square {
height: 100px;
width: 100px;
}
}
@media screen and (min-height: 720px) and (max-height: 760px) {
.square {
height: 200px;
width: 200px;
}
}
<div class="square"></div>
@media print {
// Set default to black and white
body {
color: black;
background: $white;
}
.home-button {
i {
background: url("images/logo/allovue_logo_bw.svg");
}
h1, h2 {
color: black;
}
}
// Don't display these when printing
.not-for-print {
visibility: hidden;
}
.only-for-screen {
display: none;
}
}
https://articles.uie.com/three_hund_million_button/