This is a solution to the Insure landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- IntersectionObserver API
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('add-animation');
}
});
});
observer.observe(document.querySelector('.hero__container '));
observer.observe(document.querySelector('.view-container'));
observer.observe(document.querySelector('.work__container'));
}
I will work on my animation skills a bit more. I need to imporve my skills on animation and make wesbsite look more appealing and iteractive. This is my first time implementing IntersectionObserver API, I hope I can improve on that.
- Example resource 1 - This helped me for implementaion of IntersectionObserver API.