Example: Reveal Zoom > Objective: Study the mechanics and appearance of Zoom with the best algorithmic solutions.
- From the problem of appearance:
1 - When inspecting the < section > looking for black background pattern
(background detail>>> slightly white circles in the center) it has a different color on the inspection (pink (background: # ff5e99;)) than the one on the slide.
- From the problem of mechanics:
1 - Make the center text receive a zoom effect that exceeds the limits of the screen.
2 - The text becomes opaque as it moves away from the center of the screen.
Update 1
div {
width: 100px;
height: 100px;
border: 1px solid black;
margin-left: 200px;
margin-top: 50px;
-webkit-animation-name: zoom;
-webkit-animation-duration: 350ms;
-webkit-transform: translate(150%, 150%);
-webkit-transform: scale(1.1, 1);
-webkit-transition: translate 2s;
animation-name: zoom;
animation-duration: 550ms;
transform: translate(150%, 150%);
transform: scale(1.1, 1);
transition: translate 2s;
-ms-transform: scale(1.1, 1);
}
@keyframes zoom {
from {
opacity: 1;
-webkit-transform: scale3d(0.7, 0.7, 0.7);
transform: scale3d(1, 1, 1);
}
10% {
opacity: 0.5;
}
100% {
opacity: 0;
margin-left: 200px;
margin-top: 50px;
visibility: hidden;
}
}
.zoom {
-webkit-animation-name: zoom;
animation-name: zoom;
}
<div>Test</div>