I developed a fundamental webpage in lab 26 that had scroll-based picture animations. To do this, I had to build a webpage with pictures in between. I had to build a feature called checkSlide to animate the pictures. This feature would check if I had scrolled past a particular offsetY it would activate the animated slide. The animation would cause an image element class change. For instance, if I had scrolled past an image animation trigger, it would add a class to the element called "active" which would then change and animate the css for the element.
To practice my basic html, css, and javascript, I did this laboratory. I learned to use javascript and css to create animations instead of just css. I also learned at certain points how to activate animations. When I add animations to any website, I imagine using these abilities. Some recommendation I'd offer is to use jQuery rather than vanilla javascript as jQuery is much more effective. You might have typed sliderImg.removeClass('active') for instance; instead of sliderImg.classList.remove('active');. Remembering the features like this is also simpler.
To practice my basic html, css, and javascript, I did this laboratory. I learned to use javascript and css to create animations instead of just css. I also learned at certain points how to activate animations. When I add animations to any website, I imagine using these abilities. Some recommendation I'd offer is to use jQuery rather than vanilla javascript as jQuery is much more effective. You might have typed sliderImg.removeClass('active') for instance; instead of sliderImg.classList.remove('active');. Remembering the features like this is also simpler.
Comments
Post a Comment