This is a solution to the #coding360challenge crypto currency website coding challenge by @codingossy. This is the September edition of the coding challenge.
Candidates should be able to:
- Have fun, no pressure
- Make the website responsive
- Have clean codes
- Use modern semantic HTML -Use structured and reuseable codes if library is used
- Solution URL: github.com/Ifescohub/crypto-currency
- Live Site URL: zesty-mooncake-9d3f86.netlify.app/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Desktop-first workflow
- Google Fonts - For Fonts
I learnt a lot through this project. I had fun while learning new JavaScript concepts. I was able to use the "getBoundingClientRect().top", "window.innerHeight" and "clientHeight" for the first to add animatimation on scroll
const elementInView = (el, dividend = 1) => {
const elementTop = el.getBoundingClientRect().top;
return (
elementTop <=
(window.innerHeight || document.documentElement.clientHeight) / dividend
);
};
const elementOutofView = (el) => {
const elementTop = el.getBoundingClientRect().top;
return (
elementTop > (window.innerHeight || document.documentElement.clientHeight)
);
};
Still trying to learn how to control the element on scroll even better. I still have a lot to improve on in javascript.
- webdesign.tutsplus.com/tutori... - This help me a lot while trying to wrap my head around how to use vanilla javascript to create the animation on scroll. It helped to simplify the process
- GitHub - Udeh Ifeanyi
- Frontend Mentor - @ifescohub
- Twitter - @UdehIfeanyi10
A big thanks to Gift @codingossy](https://twitter.com/codingossy) for creating this challenge. It gave a beginner like me the chance to compete with the professionals in this field while giving me basis to improve more.