1
Example:
Zoom of the Reveal
Goal: Study the mechanics and appearance of Zoom with the best algorithmic solutions.
- Of the problem of appearance:
1 - When inspecting the tag < Section > looking for the background black color pattern
(background detail >> lightly white circles in the center) it presents a different color in the inspection (pink(background: #ff5e99;)) than shown in the slide.
- Of the problem of mechanics:
1 - Make the central text receive a zoom effect that exceeds the screen limits.
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>
Much of this you solve with CSS mainly using Transform Scale() Translate(), opacity, @keyframes and medias in % or vw vh... If it’s a small project to do with practically only CSS and almost nothing from JS or jQuery to arrive at a very close result... But if the plugin already does everything pq not use it? Is it worth reinventing the wheel in your project?
– hugocsl
Hello @hugocsl Thanks for responding, it is rather a small project without the need for the entire Reveal.js framework, I did an update, can help me adjust the zoom properties and black background with white circles?
– user31050
I will try to make a basic model, but it will be basic ok as if it was only the first transition only, then you can adapt or do the rest of the transitions etc. As soon as I have a viable example I reply to you
– hugocsl